Example #1
0
 /**
  * Save layout
  *
  * @param force use of insert instead of update
  *
  * @return boolean success
  */
 function save($force = false)
 {
     //! check input
     if (empty(Core::$user->id) || !Core::$user->has("siteadm")) {
         throw new \Exception(L('No user id'));
     }
     //! set up properties
     $this->modifyd = date("Y-m-d H:i:s", Core::$core->now);
     $this->modifyid = Core::$user->id;
     Core::log('A', sprintf("Layout %s modified by %s", $this->id, Core::$user->name), "cmsaudit");
     return parent::save($force);
 }
Example #2
0
 function __construct($id = 0)
 {
     $this->parentId = 0;
     parent::__construct($id);
 }