public function fieldPermissions()
    {
        // so we can pass around by ref and not worry about end users NOT
        // using &$fields in their code...
        $fieldPerms = new ArrayObject();

        if (method_exists($this->owner, 'fieldPermissions')) {
            $fieldPerms = $this->owner->fieldPermissions();
            if (!is_array($fieldPerms)) {
                // force it to be an array
                $fieldPerms = new ArrayObject();
            }
        }

        $fieldPerms['OwnerID'] = 'TakeOwnership';
        $this->owner->extend('updateFieldPermissions', $fieldPerms);

        return $fieldPerms;
    }
public function fieldPermissions()
    {
        // so we can pass around by ref and not worry about end users NOT
        // using &$fields in their code...
        $fieldPerms = new ArrayObject();

        if (method_exists($this->owner, 'fieldPermissions')) {
            $fieldPerms = $this->owner->fieldPermissions();
            if (!is_array($fieldPerms)) {
                // force it to be an array
                $fieldPerms = new ArrayObject();
            }
        }

        $fieldPerms['OwnerID'] = 'TakeOwnership';
        $this->owner->extend('updateFieldPermissions', $fieldPerms);

        return $fieldPerms;
    }
public function fieldPermissions ( ) { // so we can pass around by ref and not worry about end users NOT // using &$fields in their code... $ fieldPerms = new ArrayObject ( ) ; if ( method_exists ( $ this -> owner , 'fieldPermissions' ) ) { $ fieldPerms = $ this -> owner -> fieldPermissions ( ) ; if ( ! is_array ( $ fieldPerms ) ) { // force it to be an array $ fieldPerms = new ArrayObject ( ) ; } } $ fieldPerms [ 'OwnerID' ] = 'TakeOwnership' ; $ this -> owner -> extend ( 'updateFieldPermissions' , $ fieldPerms ) ; return $ fieldPerms ; }
Allow users to specify an array of field level permission requirements on a content
object that will be checked when editing items.

This should return an array (
'FieldName'		=> 'RequiredPermission',
)

Typically this is called directly in the extension so that OwnerID is always specified.
Allow users to specify an array of field level permission requirements on a content object that will be checked when editing items .