Ejemplo n.º 1
0
 /**
  * Gracefully delete one or many people tags
  * along with their members and subscriptions data
  *
  * @return boolean success
  */
 function delete($useWhere = false)
 {
     // force delete one item at a time.
     if (empty($this->id)) {
         $this->find();
         while ($this->fetch()) {
             $this->delete();
         }
     }
     Profile_tag::cleanup($this);
     Profile_tag_subscription::cleanup($this);
     self::blow('profile:lists:%d', $this->tagger);
     return parent::delete($useWhere);
 }