public function collectionFilter(DBObjectCollection $collection) { $ids = $collection->getPrimaryKeys(); return array("db" => $this->db_name(), "table" => $this->table(), "column" => $this->primary_key(), "value" => $ids, "comparison" => "IN"); }
public function collection() { Loader::load("model", "DBObjectCollection"); $collection = new DBObjectCollection($this->managed_object(), $this->db(), $this->table(), $this->db_name()); $collection->setFilter($this->get_where_clause_array()); return $collection; }
public function collectionFilter(DBObjectCollection $collection) { return array("column" => $this->get_primary_key(), "value" => $collection->get_select_sql($collection->get_primary_key()), "comparison" => "IN", "wrap" => "off", "slashes" => false); }