public function DeleteByIds($links_ids)
 {
     $criteria = new CriteriaCompo();
     $criteria->add(new Criteria('link_id', '(' . implode(', ', $links_ids) . ')', 'IN'));
     return parent::deleteAll($criteria);
 }