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( 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 All the available modules
static array(CMS_module)
getAll
([ $orderBy = "label"], [ $polymodOnly = false], [ $reset = false])
-
$orderBy
-
$polymodOnly
-
$reset
Get all modules codenames
static array(codename
getAllCodenames
([ $reset = false])
Get All the validations available for the given user
static
array(array(string=>CMS_resourceValidation))
getAllValidations
(
CMS_profile_user &$user, [
$light =
false])
Get a module by its codename.
static
CMS_module
getByCodename
(
$datas,
string $codename)
-
string
$codename: the codename of the module to get
-
$datas
Get count of validations available for the given user
Is given module is a poly module ?
static boolean
isPolymod
(string $codename)
-
string
$codename: the codename of the module to check
Move the data of a resource from one data location to another.
May be used by every module, provided it respects the naming rules described in the modules HOWTO
static
boolean
moveResourceData
(
&$module,
string $tablesPrefix,
string $resourceIDFieldName,
integer $resourceID,
string $locationFrom,
string $locationTo, [
boolean $copyOnly =
false],
CMS_module $module)
-
CMS_module
$module: The module who want its data moved
-
string
$tablesPrefix: The prefix of the tables containing the data
-
string
$resourceIDFieldName: The name of the field containing the resource ID
-
integer
$resourceID: The DB ID of the resource whose data we want to move
-
string
$locationFrom: The starting location, among the available RESOURCE_DATA_LOCATION
-
string
$locationTo: The ending location, among the available RESOURCE_DATA_LOCATION
-
boolean
$copyOnly: If set to true, the deletion from the originating tables and dirs won't occur
-
&$module
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()