Beispiel #1
0
 /**
  * @param string $prop
  *
  * @return CMbFieldSpec
  */
 static function getConceptSpec($prop)
 {
     if ($prop == "mbField") {
         $prop = "";
     }
     $field = "dummy";
     $object = new CMbObject();
     $object->{$field} = null;
     $object->_props[$field] = $prop;
     @($object->_specs = $object->getSpecs());
     $spec = @CMbFieldSpecFact::getSpec($object, $field, $prop);
     $options = $spec->getOptions();
     $invalid = array("moreThan", "moreEquals", "sameAs", "notContaining", "notNear", "dependsOn", "helped", "aidesaisie");
     foreach ($invalid as $_invalid) {
         unset($options[$_invalid]);
     }
     self::orderSpecs($options);
     $spec->_options = $options;
     return $spec;
 }