Create takes a hash of values and creates a row in the database:
int(11) 'Parent'.
varchar(255) 'Name'.
varchar(255) 'Description'.
varchar(64) 'ObjectType'.
int(11) 'ObjectId'.
Deletes this topic, reparenting all sub-topics to this one's parent.
Deletes this topic, and all of its descendants.
Returns the parent Topic of this one.
Returns a Topics object containing this topic's children, sorted by Topic.Name.
Intercept attempts to modify the Topic so we can apply ACLs
Returns true if the current user has the right for this topic, for the whole system or for whatever object this topic is associated with
Returns the current value of id. (In the database, id is stored as int(11).)
Returns the current value of Parent. (In the database, Parent is stored as int(11).)
Set Parent to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Parent will be stored as a int(11).)
Returns the current value of Name. (In the database, Name is stored as varchar(255).)
Set Name to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Name will be stored as a varchar(255).)
Returns the current value of Description. (In the database, Description is stored as varchar(255).)
Set Description to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Description will be stored as a varchar(255).)
Returns the current value of ObjectType. (In the database, ObjectType is stored as varchar(64).)
Set ObjectType to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ObjectType will be stored as a varchar(64).)
Returns the current value of ObjectId. (In the database, ObjectId is stored as int(11).)
Set ObjectId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ObjectId will be stored as a int(11).)
← Back to index