示例#1
0
 /**
  * Class constructor.
  *
  * @param string         $uid   The unique identifier of the revision
  * @param TokenInterface $token The current auth token
  */
 public function __construct($uid = null, $token = null)
 {
     parent::__construct($uid, $token);
     $this->_state = self::STATE_ADDED;
 }
 /**
  * Class constructor.
  *
  * @param string $uid     The unique identifier of the content
  * @param array  $options Initial options for the content:
  *                        - accept      array Acceptable class names for the value
  *                        - maxentry    int The maxentry in value
  *                        - default     array default value for datas
  */
 public function __construct($uid = null, $options = null)
 {
     parent::__construct($uid, $options);
     $this->_indexation = new ArrayCollection();
     $this->_subcontent = new ArrayCollection();
     $this->_parentcontent = new ArrayCollection();
     $this->_revisions = new ArrayCollection();
     $this->isloaded = false;
     $this->_state = self::STATE_NEW;
     $this->setOptions($options);
 }