31
timgno
Re: Xoops 2.5.x Functions
  • 2011/12/7 16:27

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


for the file backend.php, as you will, in future, with the class newsstory like this code?

if (file_exists($fileinc $GLOBALS['xoops']->path('modules/news/class/class.newsstory.php'))) {
        include 
$fileinc;
        
$sarray NewsStory::getAllPublished(100true);
    }

32
trabis
Re: Xoops 2.5.x Functions
  • 2011/12/7 18:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

timgno wrote:
for the file backend.php, as you will, in future, with the class newsstory like this code?

if (file_exists($fileinc $GLOBALS['xoops']->path('modules/news/class/class.newsstory.php'))) {
        include 
$fileinc;
        
$sarray NewsStory::getAllPublished(100true);
    }


backend.php and xmlrpc.php will be removed as well as other files that contain code that belongs in news module.

33
timgno
Re: Xoops 2.5.x Functions
  • 2011/12/7 19:34

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


In place of these two files, will be used feed.php file, as in XoopsEngine?

34
trabis
Re: Xoops 2.5.x Functions
  • 2011/12/7 21:34

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


XE Feed.php is a front controller. In Xoops we don't use font controllers yet so, the feed.php must be placed/implemented by each module. What we may add meanwhile (2.6.x), is a class to help generating those module controllers.

35
timgno
Re: Xoops 2.5.x Functions
  • 2011/12/10 18:52

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


datetime class is useful, with appropriate functions?

I built one for me with all formats, if you are interested, I put it in downloads.

Login

Who's Online

225 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits