Exemplo n.º 1
0
 public function Save($post)
 {
     $success = false;
     $success = parent::Save($post, 'contact');
     //$this->SendContactMail();
     return $success;
 }
Exemplo n.º 2
0
 public function Save($post)
 {
     $success = false;
     // Keeping the apiary_id in memory before sending data to the parent method
     $apiary_id = $post['apiary_id'];
     unset($post['apiary_id']);
     $success = parent::Save($post, 'beehive');
     if ($this->_id != null) {
         $apiary = ApiaryRepository::FindById($apiary_id);
         $apiary->ownBeehive[] = $this->_entity;
         //TODO: See what we do with saving functionalities
         //$saved_apiary_id = ApiaryFactory::Save($apiary);
         $saved_apiary_id = Database::Save($apiary);
         if (isset($this->_id) && isset($saved_apiary_id)) {
             $success = true;
         }
     }
     return $success;
 }
Exemplo n.º 3
0
 public function Save($data)
 {
     return parent::Save($data, 'post');
 }
Exemplo n.º 4
0
 public function Save($data)
 {
     return parent::Save($data, 'apiary');
 }