public static function reduceFieldList($fieldsList, $isRead = false, $isWrite = false)
    {
        $result = array();

        foreach ($fieldsList as $field) {
            //==============================================================================
            //      Filter Non-Readable Fields
            if ($isRead && !$field->read) {
                continue;
            }
            //==============================================================================
            //      Filter Non-Writable Fields
            if ($isWrite && !$field->write) {
                continue;
            }
            $result[] = $field->id;
        }

        return $result;
    }
public static function reduceFieldList($fieldsList, $isRead = false, $isWrite = false)
    {
        $result = array();

        foreach ($fieldsList as $field) {
            //==============================================================================
            //      Filter Non-Readable Fields
            if ($isRead && !$field->read) {
                continue;
            }
            //==============================================================================
            //      Filter Non-Writable Fields
            if ($isWrite && !$field->write) {
                continue;
            }
            $result[] = $field->id;
        }

        return $result;
    }
public static function reduceFieldList ( $ fieldsList , $ isRead = false , $ isWrite = false ) { $ result = array ( ) ; foreach ( $ fieldsList as $ field ) { //============================================================================== //      Filter Non-Readable Fields if ( $ isRead && ! $ field -> read ) { continue ; } //============================================================================== //      Filter Non-Writable Fields if ( $ isWrite && ! $ field -> write ) { continue ; } $ result [ ] = $ field -> id ; } return $ result ; }
Redure a Fields List to an Array of Field Ids

@param array $fieldsList Object Field List
@param bool  $isRead     Filter non Readable Fields
@param bool  $isWrite    Filter non Writable Fields

@return string[]
Redure a Fields List to an Array of Field Ids