Overview  Package PHPDoctor

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.


Field Summary
public var$a_articles
public var$a_users
public var$a_images
public var$error
Fields inherited from client.client_entity
$a_entity $a_images $recent
Method Summary
public voidclient_users
public associativeget_publishing

Return data of users that are authors of published articles.

public arrayget_articles

Returns basic data of articles by given user.

Methods inherited from client.client_entity
client_entity, get_by, get_image, get_image_assignment, get_image_tag, get_image_link, select_box
Field Detail

a_articles

public var $a_articles

a_users

public var $a_users

a_images

public var $a_images

error

public var $error
Method Detail

client_users()

public void client_users(var $art,
                         var $use,
                         var $ima)
Parameters:
$art
$use
$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

Overview  Package PHPDoctor