Class CMS_poly_rss_definitions

Description

Class CMS_poly_rss_definitions Represent an RSS definition for an object

Located in /automne/classes/modules/polymod/poly_rss_definition.php (line 26)

CMS_grandFather
   |
   --CMS_poly_rss_definitions
Method Summary
 void __construct ([integer $id = 0], [array $dbValues = array()])
 array asArray ([array $params = array()],  &$files, array $files)
 boolean compileDefinition ()
 boolean convertDefinitions (CMS_module $module)
 boolean destroy ()
 boolean fromArray (array $data, array $params, CMS_language $cms_language,  &$idsRelation,  &$infos, array $idsRelation, string $infos)
 string, getDescription (mixed $language)
 integer, getID ()
 string, getLabel ([mixed $language = ''])
 mixed, getValue (string $valueName)
 boolean setValue (string $valueName, mixed $value)
 boolean writeToPersistence ()
Methods
Constructor __construct (line 64)

Constructor.

initialize object.

  • access: public
void __construct ([integer $id = 0], [array $dbValues = array()])
  • integer $id: DB id
  • array $dbValues: DB values
asArray (line 357)

Get rss object as an array structure used for export

  • return: : the object array structure
  • access: public
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
compileDefinition (line 186)

Compile the RSS definition

  • return: true on success, false on failure
  • access: public
boolean compileDefinition ()
convertDefinitions (line 484)

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

  • return: : true on success, false on failure
  • access: public
boolean convertDefinitions (CMS_module $module)
destroy (line 314)

Destroy this object in DB

  • return: true on success, false on failure
  • access: public
boolean destroy ()
fromArray (line 398)

Import rss feed from given array datas

  • return: : true on success, false on failure
  • access: public
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
getDescription (line 239)

get object description

  • return: the description
  • access: public
string, getDescription (mixed $language)
  • mixed $language: the language code (string) or the CMS_language (object) to use for description
getID (line 129)

Get object ID

  • return: the DB object ID
  • access: public
integer, getID ()
getLabel (line 223)

get object label

  • return: the label
  • access: public
string, getLabel ([mixed $language = ''])
  • mixed $language: the language code (string) or the CMS_language (object) to use for label
getValue (line 207)

get an object value.

  • return: the value
  • access: public
mixed, getValue (string $valueName)
  • string $valueName: the name of the value to get
setValue (line 142)

Sets an object value.

  • return: true on success, false on failure
  • access: public
boolean setValue (string $valueName, mixed $value)
  • string $valueName: the name of the value to set
  • mixed $value: the value to set
writeToPersistence (line 254)

Writes object into persistence (MySQL for now), along with base data.

  • return: true on success, false on failure
  • access: public
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()
Class Constants

Documentation generated on Wed, 15 Feb 2012 15:37:38 +0100 by phpDocumentor 1.4.3