Ejemplo n.º 1
0
 static function get_eids($search_term, $prop_id, $type_id, $search_compare_op = 0)
 {
     $prop_name = Property::static_get_table_name($prop_id);
     $vptepte_class_name = "view_" . $prop_name . "_to_e_p_to_e";
     //	include_once (dirname(__FILE__) .'/../PropertyTypeEntity/'.$vptepte_class_name.'.php');
     $theclass = new $vptepte_class_name();
     $reflObject = new ReflectionObject($theclass);
     $reflMethod = $reflObject->getMethod("get_eids");
     $reflParameters = $reflMethod->getParameters();
     $args = array();
     foreach ($reflParameters as $param) {
         //$paramName = $param->getName();
         //$args[$param->getPosition()] = $paramName;
         $args[$param->getPosition()] = func_get_arg($param->getPosition());
         //this way view_int_prop... will be passed the fourth argument.
         //Note: assumes get_eids signature matches order between here and the vptepte's
     }
     $eids = array();
     if (!$type_id) {
         $type_hash = MixedQueries::get_type_list();
         foreach ($type_hash as $_type_id => $type_name) {
             //$eids = array_merge($eids, $theclass->get_eids($search_term, $prop_id, $_type_id));
             $args[2] = $_type_id;
             $eids = array_merge($eids, $reflMethod->invokeArgs($theclass, $args));
         }
     } else {
         //$eids = $theclass->get_eids($search_term, $prop_id, $type_id);
         $eids = $reflMethod->invokeArgs($theclass, $args);
     }
     return $eids;
 }
	static function get_unrealized_transactions_by_eidsrc($eidsrc)
	{
		return MixedQueries::get_unrealized_transactions_by_eidsrc($eidsrc);
	}
Ejemplo n.º 3
0
 static function get_eid_rec_count($search_term, $prop_id, $type_id)
 {
     $eids = MixedQueries::get_eids($search_term, $prop_id, $type_id);
     return count($eids);
 }
Ejemplo n.º 4
0
 static function get_eids($search_term, $prop_id, $type_id)
 {
     return MixedQueries::get_eids($search_term, $prop_id, $type_id);
 }
 static function get_eids_values_hash($eids, $prop_id, $type_id, $desc = 0)
 {
     return MixedQueries::get_eids_values_hash($eids, $prop_id, $type_id, $desc);
 }