Pimcore\Model\Object\ClassDefinition\CustomLayout::setModificationDate PHP Method

setModificationDate() public method

public setModificationDate ( integer $modificationDate ) : void
$modificationDate integer
return void
    public function setModificationDate($modificationDate)
    {
        $this->modificationDate = (int) $modificationDate;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * Create a new record for the object in database
  *
  * @return boolean
  */
 public function create()
 {
     $this->db->insert("custom_layouts", array("name" => $this->model->getName(), "classId" => $this->model->getClassId()));
     $this->model->setId($this->db->lastInsertId());
     $this->model->setCreationDate(time());
     $this->model->setModificationDate(time());
     $this->save();
 }