Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DocTitle Class Reference
+ Collaboration diagram for DocTitle:

Static Public Member Functions

static getRelationTitle ($docid, $latest=true, Doc $doc, $docrevOption="", array &$info=array())
 
static getTitle ($docid, $latest=true, $docrevOption="latest", array &$info=array())
 

Static Protected Member Functions

static setRelationCache (Doc $doc, $uid)
 

Detailed Description

Get Title from ids

Definition at line 11 of file Class.DocTitle.php.

Member Function Documentation

static getRelationTitle (   $docid,
  $latest = true,
Doc  $doc,
  $docrevOption = "",
array &  $info = array() 
)
static

return title of relation return false if access deny return null if relation not found

Parameters
int$docidrelation documentg id
bool$latesttrue if it is latest
Doc$docdocument where comes from relation
string$docrevOptiondocrev attribute option
array$infomore information about document target (revision, initid)
Returns
bool|null|string

Definition at line 26 of file Class.DocTitle.php.

+ Here is the call graph for this function:

static getTitle (   $docid,
  $latest = true,
  $docrevOption = "latest",
array &  $info = array() 
)
static

Get title from database if not found in cache

Parameters
int$docidDocument identifier
bool$latest
string$docrevOption
array$info
Returns
bool|null
Exceptions
\Dcp\Db\Exception

Definition at line 179 of file Class.DocTitle.php.

+ Here is the call graph for this function:

static setRelationCache ( Doc  $doc,
  $uid 
)
staticprotected

get all title and access of document's relations

Parameters
Doc$doc
int$uiduser identifier
Returns
void

Definition at line 71 of file Class.DocTitle.php.

+ Here is the call graph for this function:


The documentation for this class was generated from the following file:
← centre documentaire © anakeen