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

Public Member Functions

 __construct ($id=0, $config=null, Doc &$doc=null)
 
 createDocument ($familyId, $temporary=false)
 
 docisset ()
 
 setError ($err)
 
 isAlive ()
 
 affect (&$doc)
 
 getAttribute ($aid)
 
 usePartialDocument (array $attrids)
 
 getInternalDocument ()
 
 getValues ()
 
 getValue ($aid)
 
 getProposalDocuments ($aid, $key)
 
 setValue ($aid, $nv)
 
 setVolatileProperty ($key, $value)
 
 getProperties ($complete=true, $infoprop=false)
 
 getConfiguration ()
 
 getSecurity ()
 
 getLastModifier ()
 
 getProperty ($idprop)
 
 getAttributes ()
 
 isCollection ()
 
 hasAttribute ($aid)
 
 getDocument ($onlyvalues=false, $completeprop=true, $infoprop=false, $usertags=false)
 
 getRevisions ($onlyvalues=true, $completeprop=false)
 
 cloneDocument ($temporary=false, $linkfld=true, $copyfile=false, $title="")
 
 getHistory ($allrevision=true, $code="")
 
 save ()
 
 send ($to="", $cc="", $bcc="", $subject="", $comment="", $savecopy=false)
 
 create ()
 
 lock ($auto=false)
 
 unlock ($auto=false)
 
 addUserTag ($tag, $comment)
 
 deleteUserTag ($tag)
 
 getUserTags ()
 
 allocate ($userid, $comment="", $revision=false, $autolock=true)
 
 unallocate ($comment="", $revision=false)
 
 changeState ($state)
 
 delete ($really=false)
 
 restore ()
 
 addRevision ($comment, $version="", $volatile=false)
 
 moveTo ($movetoid, $fromtoid=null)
 
 setFileValueFromHttpVars ()
 
 setValueFromHttpVars ()
 
 setLogicalName ()
 
 hasWaitingFiles ()
 
 setVersion ($version, $usecomment=true)
 
 getFollowingStates ()
 

Static Public Member Functions

static sortprevision ($a, $b)
 
static humandelay ($dd)
 

Data Fields

 $error = ''
 
 $dbaccess
 

Protected Member Functions

 getDocPropertiesFields ()
 

Protected Attributes

 $doc
 
 $_properties
 

Detailed Description

Document Class

Definition at line 20 of file Class.Document.php.

Constructor & Destructor Documentation

__construct (   $id = 0,
  $config = null,
Doc $doc = null 
)
Parameters
int$id
stdClass$config
Doc$doc

Definition at line 35 of file Class.Document.php.

+ Here is the call graph for this function:

Member Function Documentation

addRevision (   $comment,
  $version = "",
  $volatile = false 
)

Definition at line 732 of file Class.Document.php.

+ Here is the call graph for this function:

addUserTag (   $tag,
  $comment 
)

Definition at line 633 of file Class.Document.php.

+ Here is the call graph for this function:

affect ( $doc)
Parameters
Doc$doc

Definition at line 96 of file Class.Document.php.

allocate (   $userid,
  $comment = "",
  $revision = false,
  $autolock = true 
)

allocate document

affect a document to a user

Parameters
int$useridthe system identifier of the user to affect
bool$revisionif false no revision are made
bool$autolockif false no lock are made
Returns
string error message, if no error empty string, if message

Definition at line 673 of file Class.Document.php.

+ Here is the call graph for this function:

changeState (   $state)

Definition at line 701 of file Class.Document.php.

+ Here is the call graph for this function:

cloneDocument (   $temporary = false,
  $linkfld = true,
  $copyfile = false,
  $title = "" 
)

clone document

Definition at line 525 of file Class.Document.php.

+ Here is the call graph for this function:

create ( )

Definition at line 609 of file Class.Document.php.

+ Here is the call graph for this function:

createDocument (   $familyId,
  $temporary = false 
)

create document : not set in dataabse until it was saved

Parameters
string$familyIdthe family identifier
boolean$temporaryset to true if need only a temporary document
Returns
void

Definition at line 69 of file Class.Document.php.

+ Here is the call graph for this function:

delete (   $really = false)

Definition at line 711 of file Class.Document.php.

+ Here is the call graph for this function:

deleteUserTag (   $tag)

Definition at line 642 of file Class.Document.php.

+ Here is the call graph for this function:

docisset ( )

Definition at line 80 of file Class.Document.php.

getAttribute (   $aid)

Definition at line 103 of file Class.Document.php.

getAttributes ( )

return all attribute definition return parameters also only if it is a family

Returns
array

Definition at line 422 of file Class.Document.php.

getConfiguration ( )

return all configuration item from xml config file

Returns
array

Definition at line 365 of file Class.Document.php.

getDocPropertiesFields ( )
protected

Definition at line 263 of file Class.Document.php.

getDocument (   $onlyvalues = false,
  $completeprop = true,
  $infoprop = false,
  $usertags = false 
)

return properties, values and attributes definition

Definition at line 478 of file Class.Document.php.

+ Here is the call graph for this function:

getFollowingStates ( )

Definition at line 869 of file Class.Document.php.

getHistory (   $allrevision = true,
  $code = "" 
)

return properties, values and attributes definition

Definition at line 557 of file Class.Document.php.

getInternalDocument ( )
Returns
Doc|null

Definition at line 118 of file Class.Document.php.

getLastModifier ( )

Definition at line 400 of file Class.Document.php.

getProperties (   $complete = true,
  $infoprop = false 
)

return all properties object like id, initid, revision, ...

Parameters
bool$completeif false not set fromname, fromtitle, lastmodifiername (it is set to false in collection to increase speed)
bool$infopropif true add informations about properties like labels
Returns
array

Definition at line 275 of file Class.Document.php.

+ Here is the call graph for this function:

getProperty (   $idprop)

Definition at line 410 of file Class.Document.php.

+ Here is the call graph for this function:

getProposalDocuments (   $aid,
  $key 
)

return document list for relation attribute

Returns
array

Definition at line 214 of file Class.Document.php.

+ Here is the call graph for this function:

getRevisions (   $onlyvalues = true,
  $completeprop = false 
)

return properties, values and attributes definition

Definition at line 507 of file Class.Document.php.

+ Here is the call graph for this function:

getSecurity ( )

return all configuration item from xml config file

Returns
array

Definition at line 382 of file Class.Document.php.

getUserTags ( )

Definition at line 651 of file Class.Document.php.

getValue (   $aid)

return an attribute values

Returns
array

Definition at line 199 of file Class.Document.php.

getValues ( )

return all attribute values

Returns
array|null

Definition at line 126 of file Class.Document.php.

+ Here is the call graph for this function:

hasAttribute (   $aid)

return all attribute definition

Returns

Definition at line 468 of file Class.Document.php.

hasWaitingFiles ( )

Definition at line 838 of file Class.Document.php.

static humandelay (   $dd)
static

Definition at line 948 of file Class.Document.php.

isAlive ( )

Definition at line 88 of file Class.Document.php.

isCollection ( )

Definition at line 457 of file Class.Document.php.

lock (   $auto = false)

Definition at line 615 of file Class.Document.php.

+ Here is the call graph for this function:

moveTo (   $movetoid,
  $fromtoid = null 
)

Definition at line 743 of file Class.Document.php.

+ Here is the call graph for this function:

restore ( )

Definition at line 720 of file Class.Document.php.

+ Here is the call graph for this function:

save ( )

Definition at line 571 of file Class.Document.php.

+ Here is the call graph for this function:

send (   $to = "",
  $cc = "",
  $bcc = "",
  $subject = "",
  $comment = "",
  $savecopy = false 
)

Definition at line 599 of file Class.Document.php.

+ Here is the call graph for this function:

setError (   $err)

Definition at line 84 of file Class.Document.php.

setFileValueFromHttpVars ( )

Definition at line 790 of file Class.Document.php.

+ Here is the call graph for this function:

setLogicalName ( )

Definition at line 822 of file Class.Document.php.

+ Here is the call graph for this function:

setValue (   $aid,
  $nv 
)

return an attribute values

Returns
array

Definition at line 242 of file Class.Document.php.

+ Here is the call graph for this function:

setValueFromHttpVars ( )

Definition at line 805 of file Class.Document.php.

+ Here is the call graph for this function:

setVersion (   $version,
  $usecomment = true 
)

Definition at line 845 of file Class.Document.php.

+ Here is the call graph for this function:

setVolatileProperty (   $key,
  $value 
)

Definition at line 254 of file Class.Document.php.

static sortprevision (   $a,
  $b 
)
static

Definition at line 941 of file Class.Document.php.

unallocate (   $comment = "",
  $revision = false 
)

allocate document

affect a document to a user

Parameters
int$useridthe system identifier of the user to affect
bool$revisionif false no revision are made
bool$autolockif false no lock are made
Returns
string error message, if no error empty string, if message

Definition at line 692 of file Class.Document.php.

+ Here is the call graph for this function:

unlock (   $auto = false)

Definition at line 624 of file Class.Document.php.

+ Here is the call graph for this function:

usePartialDocument ( array  $attrids)

Definition at line 111 of file Class.Document.php.

Field Documentation

$_properties
protected

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

$dbaccess

Definition at line 28 of file Class.Document.php.

$doc
protected

Definition at line 25 of file Class.Document.php.

$error = ''

Definition at line 27 of file Class.Document.php.


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