Model/Document.php
changeset 62 10be6b9e55e7
parent 58 87bf6ec8af90
child 63 774ba82dca59
equal deleted inserted replaced
61:1bc0ec8ed05b 62:10be6b9e55e7
    18     /**
    18     /**
    19     * @var integer $id
    19     * @var integer $id
    20     */
    20     */
    21     protected $id;
    21     protected $id;
    22     
    22     
    23     
       
    24     /**
    23     /**
    25      * @var boolean $manualOrder
    24      * @var boolean $manualOrder
    26      */
    25      */
    27     protected $manualOrder = false;
    26     protected $manualOrder = false;
    28     
    27     
    38     
    37     
    39     /**
    38     /**
    40      * @var string tagsStr
    39      * @var string tagsStr
    41      */
    40      */
    42     protected $tagsStr;
    41     protected $tagsStr;
       
    42         
       
    43    /**
       
    44     * @var DateTime
       
    45     */
       
    46     protected $createdAt;
    43     
    47     
    44     
    48     
    45     /**
    49     /**
    46      * Get id
    50      * Get id
    47      *
    51      *
   116     function getTagsStr()
   120     function getTagsStr()
   117     {
   121     {
   118         return $this->tagsStr;
   122         return $this->tagsStr;
   119     }
   123     }
   120     
   124     
       
   125     /**
       
   126      * (non-PHPdoc)
       
   127      * @see IRI\Bundle\WikiTagBundle\Model.DocumentInterface::getCreatedAt()
       
   128      */
       
   129     function getCreatedAt()
       
   130     {
       
   131         return $this->createdAt;
       
   132     }
       
   133     
       
   134     /**
       
   135     *
       
   136     * construct the class
       
   137     */
       
   138     function __construct()
       
   139     {
       
   140         $this->createdAt = new \DateTime("now", new \DateTimeZone('UTC'));
       
   141     }
       
   142     
       
   143     
   121     public function __toString()
   144     public function __toString()
   122     {
   145     {
   123         return print_r(Debug::export($this, 3),true);
   146         return print_r(Debug::export($this, 3),true);
   124     }
   147     }
   125 
   148