|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
tv2Xdb document class
Field Summary | |
integer | $ctime document modify (change) time |
array | $fields document field array (numerically indexed) |
array | $fv document field values array (indexed by field name) |
integer | $id document id |
string | $ident document ident |
string | $name document name |
string | $path document path |
private array | $permissions document permissions |
string | $type document type |
private object | $xdb tv2Xdb object |
Constructor Summary | |
void | tv2Document([boolean $empty]) Connects to tv2Xdb |
Method Summary | |
void | addFIeld(string $name, [string $value], [string $type]) Adds new field to the document |
boolean | addPermission(string $ug, string $name, string $permission) add new permission for the document |
boolean | changeContext([string $context]) Experimental. |
boolean | changeField(string $oldname, string $newname, [string $value], [string $type]) Changes field name type and value. |
boolean | changePermission(string $ug, string $name, string $permission) Replace a permission for a document |
boolean | changeType(string $type) Changes document type |
boolean | changeVersion(string $lang, string $statuts) Experimental. |
boolean | create(string $ident, string $type) create a new document |
private boolean | error(string $msg) Sends an error to the errors object and returns FALSE |
boolean | move(string $ident, [boolean $overwrite]) Moves document in the tv2Xdb tree |
boolean | open(mixed $id, [array $vinfo]) Opens an existing document from the tv2Xdb |
boolean | remove() Deletes a document from tv2Xdb |
boolean | removeField(string $name) Deletes a field in a document |
void | removeFields() Deletes all fields in a document |
void | removeFieldValues() Empties document fields |
boolean | removePermission(string $ug, string $name) Removes permissions for user or group on the document |
void | removePermissions() Remove all permissions on the document |
boolean | removeVersion() Experimental. |
boolean | save() Saves a document in the tv2Xdb |
boolean | setVersion(string $lang, string $statuts) Experimental. |
boolean | startVersioning(string $context, string $lang, string $status) Experimental. |
boolean | stopVersioning() Experimental. |
Field Detail |
integer $ctime
document modify (change) time
array $fields
document field array (numerically indexed)
array $fv
document field values array (indexed by field name)
integer $id
document id
string $ident
document ident
string $name
document name
string $path
document path
private array $permissions
document permissions
string $type
document type
private object $xdb
tv2Xdb object
Constructor Detail |
void tv2Document([boolean $empty])
Connects to tv2Xdb
empty
- if set to TRUE tv2Xdb will not be connected.Method Detail |
void addFIeld(string $name, [string $value], [string $type])
Adds new field to the document
name
- field namevalue
- field valuetype
- field typeboolean addPermission(string $ug, string $name, string $permission)
add new permission for the document
ug
- user 'u' or group 'g'?name
- user/group namepermission
- o/w/r/x/dboolean changeContext([string $context])
Experimental. Changes context in which versions status has meaning
context
- context nameboolean changeField(string $oldname, string $newname, [string $value], [string $type])
Changes field name type and value. If the field does not exist adds a new field.
oldname
- field namenewname
- new name for the field (use same as oldname if you don't want to change it)value
- new value for the field (pass NULL if you don't want to change it)type
- new type for the field (pass NULL if you don't want to change it)boolean changePermission(string $ug, string $name, string $permission)
Replace a permission for a document
ug
- user 'u' or group 'g'?name
- user/group namepermission
- o/w/r/x/dboolean changeType(string $type)
Changes document type
type
- new type for the documentboolean changeVersion(string $lang, string $statuts)
Experimental. Changes version of the document
lang
- document languagestatuts
- document statusboolean create(string $ident, string $type)
create a new document
ident
- document identtype
- document typeprivate boolean error(string $msg)
Sends an error to the errors object and returns FALSE
msg
- error messageboolean move(string $ident, [boolean $overwrite])
Moves document in the tv2Xdb tree
ident
- target identoverwrite
- Should we overwrite if doc exists at new location? (default: FALSE)boolean open(mixed $id, [array $vinfo])
Opens an existing document from the tv2Xdb
id
- document id/identvinfo
- version info (do not use: still experimental)boolean remove()
Deletes a document from tv2Xdb
boolean removeField(string $name)
Deletes a field in a document
name
- field namevoid removeFields()
Deletes all fields in a document
void removeFieldValues()
Empties document fields
boolean removePermission(string $ug, string $name)
Removes permissions for user or group on the document
ug
- user 'u' or group 'g'?name
- user/group namevoid removePermissions()
Remove all permissions on the document
boolean removeVersion()
Experimental. Removes a version of the document.
boolean save()
Saves a document in the tv2Xdb
boolean setVersion(string $lang, string $statuts)
Experimental. Sets version of the document
lang
- document languagestatuts
- document statusboolean startVersioning(string $context, string $lang, string $status)
Experimental. Start version control for the document.
context
- contextlang
- languagestatus
- statusboolean stopVersioning()
Experimental. Stop version control for the document.
|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)