Example #1
0
 /**
  * Seo creation
  * @return boolean
  */
 public function create()
 {
     if (!$this->validate()) {
         return false;
     }
     $this->object = $object = new Seo(['url' => $this->url, 'title' => empty($this->title) ? null : $this->title, 'keywords' => empty($this->keywords) ? null : $this->keywords, 'description' => empty($this->description) ? null : $this->description, 'snippet' => empty($this->snippet) ? null : $this->snippet]);
     if (!$object->save(false)) {
         return false;
     }
     return true;
 }