client
Class client_users
client.client_entity
|
+--client.client_users
class client_users
extends client_entity
Client part support for Article System.
Functions to handle volumes on the client side.
public var | $a_articles |
public var | $a_users |
public var | $a_images |
public var | $error |
public void | client_users |
public associative | get_publishing Return data of users that are authors of published articles. |
public array | get_articles Returns basic data of articles by given user. |
a_articles
public var $a_articles
a_users
public var $a_users
a_images
public var $a_images
error
public var $error
client_users()
public void client_users(var $art,
var $use,
var $ima)
get_publishing()
public associative get_publishing(var $what = "U.id,U.name")
Return data of users that are authors of published articles.
The result is sorted by user name by default. Note: That doesn't mean it returns users from group 'authors', those are two different things.
- Parameters:
$what
- Returns:
- array function get ($id, $bonus='') { return $this->a_users->get_one ('*', "WHERE id='$id' ". $bonus); } Returns all users in db. Namely 'id, name' for each of them. @return associative array function get_all ($bonus='') { TODO: order by ?? $vols = $this->a_issues->get ("volume", "WHERE archived='1' or current='1' GROUP BY volume $bonus"); $vlist = ''; foreach ($vols as $v) $vlist .= $v['volume'] .","; perl_chop ($vlist); return $this->a_volumes->get ("id, name", "WHERE id IN ($vlist)"); }
get_articles()
public array get_articles(var $id)
Returns basic data of articles by given user.
Namely 'id, title, subtitle, menu_title, menu_group'. The list is ordered by 'iorder'.
- Parameters:
$id
- Returns:
- of associative arrays