| extends | XoopsModelAbstract | 
|---|
Object write handler class.
| Methods | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | cleanVars(&$object): bool
		Clean values of all variables of the object for storage.
also add slashes and quote string wherever needed
	 Clean values of all variables of the object for storage. also add slashes and quote string wherever needed CleanVars only contains changed and cleaned variables Reference is used for PHP4 compliance Returnstrue if successful | # | ||||||||
| 
					
	public
					
					
				 | insert(object &$object, bool $force = true): mixed
		insert an object into the database
	 insert an object into the database Parameters
 Returnsobject ID | # | ||||||||
| 
					
	public
					
					
				 | delete(object &$object, bool $force = false): bool
		delete an object from the database
	 delete an object from the database Parameters
 ReturnsFALSE if failed. | # | ||||||||
| 
					
	public
					
					
				 | deleteAll(CriteriaElement|CriteriaCompo $criteria = null, bool $force = true, bool $asObject = false): bool|int
		delete all objects matching the conditions
	 delete all objects matching the conditions Parameters
 | # | ||||||||
| 
					
	public
					
					
				 | updateAll(
	string $fieldname,
	mixed $fieldvalue,
	CriteriaElement|CriteriaCompo $criteria = null,
	bool $force = false,
): bool
		Change a field for objects with a certain criteria
	 Change a field for objects with a certain criteria Parameters
 | # | ||||||||
| Methods inherited from XoopsModelAbstract | 
|---|
| __construct(), setHandler(), setVars() | 
| Properties inherited from XoopsModelAbstract | 
|---|
| $handler |