public static function get_localized_class_fields($class)
    {
        $fieldNames = null;
        $ancestry = array_reverse(ClassInfo::ancestry($class));
        foreach ($ancestry as $className) {
            if (isset(self::$localizedFields[$className])) {
                if ($fieldNames === null) {
                    $fieldNames = array();
                }
                foreach (self::$localizedFields[$className] as $k => $v) {
                    $fieldNames[] = $k;
                }
            }
        }
        return array_unique($fieldNames);
    }
public static function get_localized_class_fields($class)
    {
        $fieldNames = null;
        $ancestry = array_reverse(ClassInfo::ancestry($class));
        foreach ($ancestry as $className) {
            if (isset(self::$localizedFields[$className])) {
                if ($fieldNames === null) {
                    $fieldNames = array();
                }
                foreach (self::$localizedFields[$className] as $k => $v) {
                    $fieldNames[] = $k;
                }
            }
        }
        return array_unique($fieldNames);
    }
public static function get_localized_class_fields ( $ class ) { $ fieldNames = null ; $ ancestry = array_reverse ( ClassInfo :: ancestry ( $ class ) ) ; foreach ( $ ancestry as $ className ) { if ( isset ( self :: $ localizedFields [ $ className ] ) ) { if ( $ fieldNames === null ) { $ fieldNames = array ( ) ; } foreach ( self :: $ localizedFields [ $ className ] as $ k => $ v ) { $ fieldNames [ ] = $ k ; } } } return array_unique ( $ fieldNames ) ; }
Get an array with all localized fields for the given class
@param string $class the class name to get the fields for
@return array containing all the localized field names
Get an array with all localized fields for the given class