eZPublish  4.5
ezpContent Class Reference

Public Member Functions

 __get ($property)
 
 setActiveLanguage ($language)
 Sets the currently active language for attributes handling. More...
 

Static Public Member Functions

static create ($contentType)
 Instanciates a new content item. More...
 
static fromNode (eZContentObjectTreeNode $node, $checkAccess=true)
 Instanciates an ezpContent from an eZContentObjectTreeNode. More...
 
static fromNodeId ($nodeId, $checkAccess=true)
 Instanciates an ezpContent from an eZContentObjectTreenode Id. More...
 
static fromObject (eZContentObject $object, $checkAccess=true)
 Instanciates an ezpContent from an eZContentObject. More...
 
static fromObjectId ($objectId, $checkAccess=true)
 Instanciates an ezpContent from an eZContentObject Id. More...
 

Public Attributes

 $activeLanguage
 
 $fields
 
 $locations
 

Protected Attributes

 $object
 

Member Function Documentation

ezpContent::__get (   $property)
static ezpContent::create (   $contentType)
static

Instanciates a new content item.

Parameters
string$contentTypeThe content class (article, folder, etc)
Returns
ezpContent
static ezpContent::fromNode ( eZContentObjectTreeNode  $node,
  $checkAccess = true 
)
static

Instanciates an ezpContent from an eZContentObjectTreeNode.

Parameters
eZContentObjectTreeNode$node
Returns
ezpContent

Referenced by ezpContentRepository\query().

static ezpContent::fromNodeId (   $nodeId,
  $checkAccess = true 
)
static

Instanciates an ezpContent from an eZContentObjectTreenode Id.

Parameters
int$nodeId
Returns
ezpContent
static ezpContent::fromObject ( eZContentObject  $object,
  $checkAccess = true 
)
static

Instanciates an ezpContent from an eZContentObject.

Parameters
eZContentObject$objectId
Returns
ezpContent
static ezpContent::fromObjectId (   $objectId,
  $checkAccess = true 
)
static

Instanciates an ezpContent from an eZContentObject Id.

Parameters
int$objectId
Returns
ezpContent
ezpContent::setActiveLanguage (   $language)

Sets the currently active language for attributes handling.

Parameters
string$activeLanguageLocale, as xxx-XX
Returns
void

Member Data Documentation

ezpContent::$activeLanguage
ezpContent::$fields
ezpContent::$locations
ezpContent::$object
protected

Referenced by fromNode(), fromObject(), and fromObjectId().


The documentation for this class was generated from the following file: