Return a list of all objects names of given type
static array(integer
getListOfNamesForObject
([boolean $public = false], [ $searchConditions = array()], array $searchConditions,)
-
boolean
$public: are the needed datas public ? (default false)
-
array
$searchConditions,: search conditions to add. Format : array(conditionType => conditionValue)
-
$searchConditions
check object Mandatories Values
boolean
checkMandatory
(array $values, string $prefixName, [boolean $newFormat = false])
-
array
$values: : the POST result values
-
string
$prefixName: prefixname : the prefix used for post names
-
boolean
$newFormat: newFormat : new automne v4 format (default false for compatibility)
Redefinition of:
- CMS_object_common::checkMandatory()
- check object Mandatories Values
get object description
string,
getDescription
(mixed $language)
-
mixed
$language: the language code (string) or the CMS_language (object) to use for description
Redefinition of:
- CMS_object_common::getDescription()
- get admin object description
Get field search SQL request (used by class CMS_object_search)
string
getFieldSearchSQL
(integer $fieldID, mixed $value, string $operator, string $where, [boolean $public = false])
-
integer
$fieldID: : this field id in object
-
mixed
$value: : the value to search
-
string
$operator: : additionnal search operator
-
string
$where: : where clauses to add to SQL
-
boolean
$public: : values are public or edited ? (default is edited)
Redefinition of:
- CMS_object_common::getFieldSearchSQL()
- Get field search SQL request (used by class CMS_object_search)
get HTML admin (used to enter object values in admin)
string
getHTMLAdmin
(
$fieldID,
string $language,
$prefixName,
CMS_language $language,)
-
CMS_language
$language,: the current admin language
-
string
$language: prefixname : the prefix to use for post names
-
$fieldID
-
$prefixName
Redefinition of:
- CMS_object_common::getHTMLAdmin()
- get HTML admin (used to enter object values in admin)
get object HTML description for admin search detail. Usually, the label.
string
getHTMLDescription
([string $glue = ''])
-
string
$glue: : string glue between each objets labels (default : comma)
Redefinition of:
- CMS_object_common::getHTMLDescription()
- get object HTML description for admin search detail. Usually, the label.
get HTML admin subfields parameters (used to enter object search parameters values in admin)
string
getHTMLSubFieldsParametersSearch
( $language, $prefixName)
Get all associated object ids
array,
getIDs
()
Return the needed form field tag for current object field
string
getInput
( $fieldID, multidimentionnal $language, $inputParams, array $values)
-
array
$values: : parameters values array(parameterName => parameterValue) in : id : the form field id to set
-
multidimentionnal
$language: array $tags : xml2Array content of atm-function tag
-
$fieldID
-
$inputParams
Redefinition of:
- CMS_object_common::getInput()
- Return the needed form field tag for current object field
get labels for object structure and functions
array
getLabelsStructure
( &$language, $objectName)
Redefinition of:
- CMS_object_common::getLabelsStructure()
- get labels for object structure and functions
Get object Definition (CMS_poly_object_definition)
Get object ID
integer,
getObjectID
()
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
Redefinition of:
- CMS_object_common::getObjectLabel()
- get admin object label
get object resource status beware, for secondary resources, real status is not checked, use isSecondaryResource method of CMS_poly_object_definition instead
integer,
getObjectResourceStatus
()
get object values structure available with getValue method
multidimentionnal
getStructure
()
Redefinition of:
- CMS_object_common::getStructure()
- get object values structure available with getValue method
Get subfields definition for current object
array(integer
getSubFieldsDefinition
(
integer $objectTypeID,
integer $objectID,
$field,
CMS_poly_object_field $field,)
-
integer
$objectTypeID: the object type ID who requests these infos
-
CMS_poly_object_field
$field,: the object field
-
integer
$objectID: (can be null) $objectID the object ID who requests these infos
-
$field
Redefinition of:
- CMS_object_common::getSubFieldsDefinition()
- Get subfields definition for current object
get an object value
multidimentionnal
getValue
(string $name, [string $parameters = ''])
-
string
$name: : the name of the value to get
-
string
$parameters: (optional) : parameters for the value to get
Redefinition of:
- CMS_object_common::getValue()
- get an object value
Constructor.
initialize object.
void
__construct
(integer $objectID, [array $datas = array()], $field, [CMS_object_field $public = false], boolean $public,)
-
integer
$objectID: the object type id in catalog (relative to id in mod_object_def table)
-
array
$datas: the object and sub objects values
-
boolean
$public,: object values are public or edited ? (default is edited)
-
CMS_object_field
$public: reference
-
$field
Redefinition of:
- CMS_object_common::__construct()
- Constructor.
get an object field
mixed
objectValues
(integer $fieldID)
-
integer
$fieldID: : the field to get
Sets subobjects Values
boolean
populateSubObjectsValues
(array $datas)
-
array
$datas: datas : array created by parent loadObject method array(integer objectID => array(integer objectFieldID => array(integer objectSubFieldID => array(DB values))))
For a given object type, return options tag list (for a select tag) of all objects labels
string
selectOptions
(array $values, multidimentionnal $tags)
-
array
$values: : parameters values array(parameterName => parameterValue) in : selected : the object id which is selected (optional)
-
multidimentionnal
$tags: array $tags : xml2Array content of atm-function tag (nothing for this one)
Set subfields definition for current object
boolean
setSubFieldsDefinition
($subFieldsDefinition $subFieldsDefinition)
-
$subFieldsDefinition
$subFieldsDefinition: array(integer "subFieldID" => array("type" => string [integer|string|text|date], "objectID" => integer, "fieldID" => integer, "subFieldID" => integer))
Redefinition of:
- CMS_object_common::setSubFieldsDefinition()
- Set subfields definition for current object
set object Values
boolean
setValues
(array $values, string $prefixName, [boolean $newFormat = false])
-
array
$values: : the POST result values
-
string
$prefixName: prefixname : the prefix used for post names
-
boolean
$newFormat: newFormat : new automne v4 format (default false for compatibility)
Redefinition of:
- CMS_object_common::setValues()
- set object Values
Writes all subobjects into persistence (MySQL for now), along with base data.
boolean
writeToPersistence
()
Redefinition of:
- CMS_object_common::writeToPersistence()
- Writes all subobjects into persistence (MySQL for now), along with base data.
load all subobjects values from DB
boolean
_loadSubObjectsValues
()
Inherited Methods
Inherited From CMS_object_common
CMS_object_common::__construct()
CMS_object_common::asArray()
CMS_object_common::checkMandatory()
CMS_object_common::getDescription()
CMS_object_common::getFieldDescription()
CMS_object_common::getFieldLabel()
CMS_object_common::getFieldOrderSQL()
CMS_object_common::getFieldSearchSQL()
CMS_object_common::getHTMLAdmin()
CMS_object_common::getHTMLDescription()
CMS_object_common::getHTMLSubFieldsParameters()
CMS_object_common::getInput()
CMS_object_common::getLabel()
CMS_object_common::getLabelsStructure()
CMS_object_common::getObjectLabel()
CMS_object_common::getParamsValues()
CMS_object_common::getParamValue()
CMS_object_common::getSoapValues()
CMS_object_common::getStructure()
CMS_object_common::getSubFieldParameters()
CMS_object_common::getSubFieldsDefinition()
CMS_object_common::getValue()
CMS_object_common::hasParameters()
CMS_object_common::serializeHTMLParameters()
CMS_object_common::setParamValue()
CMS_object_common::setSoapValues()
CMS_object_common::setSubFieldsDefinition()
CMS_object_common::setValues()
CMS_object_common::treatParams()
CMS_object_common::writeToPersistence()
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()