removeOwner() public static méthode

Remove this mediafile owner
public static removeOwner ( integer $owner_id, string $owner, string $owner_attribute ) : boolean
$owner_id integer owner id
$owner string owner identification name
$owner_attribute string owner identification attribute
Résultat boolean delete result
 /**
  * Delete owners of mediafile
  */
 public function deleteOwners()
 {
     foreach ($this->attributes as $attr) {
         Mediafile::removeOwner($this->owner->primaryKey, $this->name, $attr);
     }
 }