LiveUser
[ class tree: LiveUser ] [ index: LiveUser ] [ all elements ]

File: admin.php

Source Location: /LiveUser-0.13.0/docs/examples/example5/admin.php

Classes:

Page Details:

Includes:

require_once('conf.php') [line 5]
Administration page
require_once('HTML/Template/IT.php') [line 7]
require_once('liveuser_rights.php') [line 6]

getNewsContent [line 110]

mixed getNewsContent( object &$db, int $id, string $content)

Get a news content.
  • Return: content as a string or error


Parameters

object   &$db   a reference to a db connection object
int   $id   news id
string   $content   the new content
[ Top ]



getNewsList [line 58]

void getNewsList( object &$db, string $category)

Returns news list for a given category


Parameters

object   &$db   a reference to a db connection object
string   $category   news category
[ Top ]



insertNews [line 173]

mixed insertNews( object &$db, string $title, string $content, $user)

Insert news in database
  • Return: content as a string or error


Parameters

object   &$db   a reference to a db connection object
string   $title   news title
string   $content   the new content
   $user  
[ Top ]



updateNewsContent [line 150]

mixed updateNewsContent( object &$db, &$id, $title, string $content, $user, int $id)

Update a news content
  • Return: content as a string or error


Parameters

object   &$db   a reference to a db connection object
int   $id   news id
string   $content   the new content
   &$id  
   $title  
   $user  
[ Top ]



Documentation generated on Mon, 11 Mar 2019 13:56:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.