lib/MongoLite/Database.php
public function callCriteriaFunction($id, $document) {

        return isset($this->document_criterias[$id]) ? $this->document_criterias[$id]($document):false;
    }
public function callCriteriaFunction($id, $document) {

        return isset($this->document_criterias[$id]) ? $this->document_criterias[$id]($document):false;
    }
public function callCriteriaFunction ( $ id , $ document ) { return isset ( $ this -> document_criterias [ $ id ] ) ? $ this -> document_criterias [ $ id ] ( $ document ) : false ; }
Execute registred criteria function

@param  string $id
@param  array $document
@return boolean
Execute registred criteria function