Constructor.
initialize object.
void
__construct
([integer $id = 0], [array $dbValues = array()])
-
integer
$id: DB id
-
array
$dbValues: DB values
Redefined in descendants as:
Get object as an array structure used for export
array
asArray
([array $params = array()], &$files, array $files)
-
array
$params: The export parameters. Not used here
-
array
$files: The reference to the founded files used by object
-
&$files
Redefined in descendants as:
Compile the indexURL definition
boolean
compileDefinition
()
Convert all definitions used by this object from human format to Automne format.
This method is usually used at end of module import process, when all objects are imported
Redefined in descendants as:
Destroy this object in DB
boolean
destroy
()
Redefined in descendants as:
Import object from given array datas
boolean
fromArray
(
array $data,
array $params,
CMS_language $cms_language,
&$idsRelation,
&$infos,
array $idsRelation,
string $infos)
-
array
$data: The object datas to import
-
array
$params: The import parameters. array( module => false|true : the module to create object (required) create => false|true : create missing objects (default : true) update => false|true : update existing objects (default : true) files => false|true : use files from PATH_TMP_FS (default : true) )
-
CMS_language
$cms_language: The CMS_langage to use
-
array
$idsRelation: : Reference : The relations between import datas ids and real imported ids
-
string
$infos: : Reference : The import infos returned
-
&$idsRelation
-
&$infos
Redefined in descendants as:
get object description
string,
getDescription
(mixed $language)
-
mixed
$language: the language code (string) or the CMS_language (object) to use for description
get HTML admin subfields parameters (used to enter object parameters values in admin)
string
getHTMLSubFieldsParameters
( $language, $prefixName)
get HTML admin subfields parameters (used to enter object search parameters values in admin)
string
getHTMLSubFieldsParametersSearch
( $language, [ $prefixName = ''], [ $selectedValues = false], [ $disableSelected = false])
-
$language
-
$prefixName
-
$selectedValues
-
$disableSelected
Get object ID
integer,
getID
()
Redefined in descendants as:
get object label
string,
getLabel
([mixed $language = ''])
-
mixed
$language: the language code (string) or the CMS_language (object) to use for label
get object label (same as getLabel, for objects compatibility)
string,
getObjectLabel
(mixed $language)
-
mixed
$language: the language code (string) or the CMS_language (object) to use for label
get array of object parameters indexed with parameter internalName
array(string
getParamsValues
()
get object values structure available with getValue method
multidimentionnal
getStructure
()
get subfields parameters
array(integer
getSubFieldParameters
()
get an object value.
mixed,
getValue
(string $valueName)
-
string
$valueName: the name of the value to get
Redefined in descendants as:
is this object use categories ?
boolean
hasCategories
()
has subfields parameters ?
boolean
hasParameters
()
is this object a primary resource ?
boolean
isPrimaryResource
()
is this object a secondary resource ? Note : even if this object is declared as a secondary resource, object must be directly attached to a primary resource, else it is not a secondary resource
boolean
isSecondaryResource
([boolean $dontCheckForPrimaryResourceAttachment = false])
-
boolean
$dontCheckForPrimaryResourceAttachment: : do not check for a primary resource attachement, consider it is already checked somewhere else.
load parameters from field
boolean
loadParameters
( &$field)
Sets a object uuid.
void
setUuid
(string $uuid)
-
string
$uuid: the object UUID
Sets an object value.
boolean
setValue
(string $valueName, mixed $value)
-
string
$valueName: the name of the value to set
-
mixed
$value: the value to set
Redefined in descendants as:
treat all params then return array of values treated or false if error
array,
treatParams
(array $post, string $prefix)
-
array
$post: the posted datas
-
string
$prefix: the prefix for datas name
Writes object into persistence (MySQL for now), along with base data.
boolean
writeToPersistence
()
Redefined in descendants as:
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()