/** * this is to retrieve an array of Key values of a Property whose name starts similarly * * $arr = PropertyTable::getKeysLike('tax'); $arr = PropertyTable::getKeysLike('serie'); * @author Leo **/ public static function getKeysLike($key) { $arr = array(); $c = new Criteria(); $c->add(parent::KEY, '%' . $key . '_%', CRITERIA::LIKE); $obj = parent::doSelect($c); foreach ($obj as $o) { foreach ($o->getValue() as $vk => $vv) { $arr[$vk] = $vv; } } return $arr; }