Exemplo n.º 1
0
 /**
  * @param array $bind  [ webpage => [], page => [] ]
  * @return type
  */
 public function add($bind)
 {
     if ($this->getByAlias($bind['alias'])) {
         throw new Exception('Page with this alias is exists', 1);
     }
     return parent::add($bind);
 }
Exemplo n.º 2
0
 public function add($bind)
 {
     $bind['date'] = date('Y-m-d');
     return parent::add($bind);
 }