Ejemplo n.º 1
0
 public function commit()
 {
     $url = $this->get('title');
     if (strlen($url) && strpos($url, '://') == false) {
         $this->set('title', 'http://' . $url);
     }
     parent::commit();
 }
Ejemplo n.º 2
0
 public function delete()
 {
     delete_records('artefact_internal_profile_email', 'artefact', $this->id);
     parent::delete();
 }