Class icms_ipf_Handler
Persistable Object Handlder
- icms_core_ObjectHandler
- icms_ipf_Handler
Direct known subclasses
icms_data_file_Handler, icms_data_page_Handler, icms_data_urllink_Handler, icms_ipf_category_Handler, icms_view_block_Handler, icms_view_block_position_HandlerCategory: ICMS
Copyright: The ImpressCMS Project http://www.impresscms.org/
License: GNU General Public License (GPL)
Author: marcan marcan@impresscms.org
Author: This was inspired by Mithrandir PersistableObjectHanlder: Jan Keller Pedersen mithrandir@xoops.org - IDG Danmark A/S <www.idg.dk>
Author: Gustavo Alejandro Pilla (aka nekro) nekro@impresscms.org gpilla@nubee.com.ar
Since: 1.1
Located at ipf/Handler.php
public
object
|
#
__construct( object & $db, string $itemname, string $keyname, string $idenfierName, string $summaryName, string $modulename )
Constructor - called from child classes |
public
|
|
public
|
#
addPermission( string $perm_name, string $caption, string $description = false )
Add a permission that this handler will manage for its objects |
public
|
|
public
object
&
|
|
public
|
|
public
|
|
public
mixed
&
|
#
get( mixed $id, boolean $as_object = true, $debug = false, $criteria = false )
retrieve a |
public
mixed
&
|
|
public
array
|
#
getObjects( object $criteria = null, boolean $id_as_key = false, boolean $as_object = true, $sql = false, $debug = false )
retrieve objects from the database |
public
array
|
|
public
array
|
#
getObjectsD( object $criteria = null, boolean $id_as_key = false, boolean $as_object = true, $sql = false )
retrieve objects with debug mode - so will show the query |
public
|
|
public
array
|
#
convertResultSet( object $result, boolean $id_as_key = false, boolean $as_object = true )
Convert a database resultset to a returnable array |
public
array
|
|
public
array
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
|
#
getIdsFromObjectsAsArray( array $objectsAsArray )
Build an array containing all the ids of an array of objects as array |
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
executeEvent( string $event, object & $executeEventObj )
Execute the function associated with an event This method will check if the function is available |
public
|
|
public
|
#
enableUpload( unknown_type $allowedMimeTypes = false, unknown_type $maxFileSize = false, unknown_type $maxWidth = false, unknown_type $maxHeight = false )
|
public
VOID
|
#
setUploaderConfig( str $_uploadPath = false, array $_allowedMimeTypes = false, integer $_maxFileSize = false, integer $_maxWidth = false, integer $_maxHeight = false )
Set the uploader config options. |
public
string
|
$_itemname
|
|
public
string
|
$table
Name of the table use to store this |
|
public
string
|
$keyName
Name of the table key that uniquely identify each |
|
public
string
|
$className
Name of the class derived from |
|
public
string
|
$identifierName
Name of the field which properly identify the |
|
public
string
|
$summaryName
Name of the field which will be use as a summary for the object |
|
public
string
|
$_page
Page name use to basically manage and display the |
|
public
string
|
$_modulePath
Full path of the module using this |
|
public
|
$_moduleUrl
|
|
public
string
|
$_moduleName
|
|
public
boolean
|
$uploadEnabled
|
#
false
|
public
|
$_uploadUrl
|
|
public
|
$_uploadPath
|
|
public
integer
|
$_allowedMimeTypes
|
#
0
|
public
integer
|
$_maxFileSize
|
#
1000000
|
public
integer
|
$_maxWidth
|
#
500
|
public
integer
|
$_maxHeight
|
#
500
|
public
array
|
$highlightFields
|
#
array()
|
public
array
|
$eventArray
Array containing the events name and functions |
#
array()
|
public
array
|
$permissionsArray
Array containing the permissions that this handler will manage on the objects |
#
false
|
public
boolean
|
$generalSQL
|
#
false
|
public
array
|
$_eventHooks
|
#
array()
|
public
array
|
$_disabledEvents
|
#
array()
|
$db
|