Import module from given array datas
static
boolean
fromArray
(
array $data,
array $params,
CMS_language $cms_language,
&$idsRelation,
&$infos,
array $idsRelation,
string $infos)
-
array
$data: The module datas to import
-
array
$params: The import parameters. array( module => false|true : the module to create rows (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
Return all the rows available
static
void
getAll
([
$includeInactive =
false], [
$keyword =
''], [
$groups =
array()], [
$rowIds =
array()], [
$user =
false], [
integer $tplId =
false], [
string $csId =
false], [
integer $start =
0], [
integer $limit =
0], [
$returnObjects =
true], [
&$score =
array()],
CMS_profile_user $cms_user,
integer $count)
-
CMS_profile_user
$cms_user: : restrict to user rights on modules (default : false)
-
integer
$tplId: : restrict to rows usable in given template (default : false)
-
string
$csId: : restrict to rows usable in given clientspace (default : false)
-
integer
$start: : start position
-
integer
$limit: : limit position
-
integer
$count: : number of rows founded (passed by reference)
-
$includeInactive
-
$keyword
-
$groups
-
$rowIds
-
$user
-
$returnObjects
-
&$score
Get All Groups Static function
static array(string)
getAllGroups
([ $returnStack = false], [ $reset = false])
Return all rows icons available on the server
static array
getAllIcons
()
Return a row by its ID (and tagID)
static
CMS_row
getByID
(
integer $id, [
integer $tagID =
false])
-
integer
$id: The DB ID of the wanted row
-
integer
$tagID: The tag ID attribute of the wanted row
Return all rows which uses given modules
static array
getByModules
([array $modules = array()], [boolean $returnObjects = true], [boolean $exclusive = true])
-
array
$modules: modules : the modules codename to search rows for
-
boolean
$returnObjects: returnObjects : does the function return array of ids or array of objects (default)
-
boolean
$exclusive: exclusive : does the function return rows which only contain requested modules (default : true)
public static getCloneFromID
Clones a Row, changes some attributes and writes it to persistence (MySQL for now)
static a
getCloneFromID
([anyRowID $rowID = 0], [String $label = false], [boolean $setPrivate = false])
-
boolean
$setPrivate: Should the template be set as a private one ? ALSO determines if the new row should point to the same file
-
anyRowID
$rowID: as the ID of Row to be cloned
-
String
$label: label receive a new label for this Row
Return pages IDs coresponding of a given row ID
static array
getPagesByRow
(integer $rowID, [boolean $returnObjects = false], [boolean $public = false])
-
integer
$rowID: rowID : the row to get pagesIDs
-
boolean
$returnObjects: returnObjects : to return pages objects or pages IDs
-
boolean
$public: public : targets edited or public clientspaces
Return rows ID used by a given page
static array
getRowsByPage
(integer $pageId, [boolean $returnObjects = false])
-
integer
$pageId: pageId : the row to get pagesIDs
-
boolean
$returnObjects: returnObjects : to return rows objects or rows IDs (default : false)
Does a row exists with given parameters this method is use by fromArray import method to know if an imported row already exist or not
static mixed
rowExists
(string $module, string $uuid)
-
string
$module: The module codename to check
-
string
$uuid: The row uuid to check
Does given uuid already exists for rows
static boolean
uuidExists
(string $uuid)
-
string
$uuid: The uuid to check
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()