public static function fromDbArray($arr)
 {
     $newArr = new KalturaEventConditionArray();
     if ($arr == null) {
         return $newArr;
     }
     foreach ($arr as $obj) {
         $nObj = KalturaEventCondition::getInstanceByClass(get_class($obj));
         if (!$nObj) {
             KalturaLog::err("Event condition could not find matching type for [" . get_class($obj) . "]");
             continue;
         }
         $nObj->fromObject($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 public function fromObject($dbObject)
 {
     /* @var $dbObject kEventFieldCondition */
     parent::fromObject($dbObject);
     $fieldType = get_class($dbObject->getField());
     KalturaLog::debug("Loading KalturaBooleanField from type [{$fieldType}]");
     switch ($fieldType) {
         case 'kEvalBooleanField':
             $this->field = new KalturaEvalBooleanField();
             break;
         default:
             $this->field = KalturaPluginManager::loadObject('KalturaBooleanField', $fieldType);
             break;
     }
     if ($this->field) {
         $this->field->fromObject($dbObject->getField());
     }
 }