Constructor.
initialize object.
void
__construct
([integer $id = 0], [array $dbValues = array()])
-
integer
$id: DB id
-
array
$dbValues: DB values
Get rss 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
Compile the RSS 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
Destroy this object in DB
boolean
destroy
()
Import rss feed from given array datas
boolean
fromArray
(
array $data,
array $params,
CMS_language $cms_language,
&$idsRelation,
&$infos,
array $idsRelation,
string $infos)
-
array
$data: The rss feed datas to import
-
array
$params: The import parameters. array( module => false|true : the module to create rss feed (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
get object description
string,
getDescription
(mixed $language)
-
mixed
$language: the language code (string) or the CMS_language (object) to use for description
Get object ID
integer,
getID
()
get object label
string,
getLabel
([mixed $language = ''])
-
mixed
$language: the language code (string) or the CMS_language (object) to use for label
get an object value.
mixed,
getValue
(string $valueName)
-
string
$valueName: the name of the value to get
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
Writes object into persistence (MySQL for now), along with base data.
boolean
writeToPersistence
()
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()