Пример #1
0
 function _GetPropertyValueIndex(&$el, $propertyName)
 {
     // example: $propertyName = "Image.URL": get $el's property "Image.URL" and return index of value (in DBValues array) linked to it
     if (!$propertyName || !$el || empty($el['Properties'])) {
         return -1;
     }
     $property = OEDynUtils::_FindInArray($el['Properties'], $propertyName);
     if ($property === null) {
         return -1;
     }
     return intval($property);
     // index in DBValues array
 }