Exemple #1
0
 public static function setDefaultCriteriaFilter()
 {
     parent::setDefaultCriteriaFilter();
     if (self::$s_criteria_filter == null) {
         self::$s_criteria_filter = new criteriaFilter();
     }
     $c = new myCriteria();
     $c->addAnd(self::STATUS, DrmPolicyStatus::DELETED, Criteria::NOT_EQUAL);
     self::$s_criteria_filter->setFilter($c);
 }
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     foreach (self::$instances as $instance) {
         $instance->clearAllReferences(false);
     }
     self::$instances = array();
 }