kernel/private/classes/webdav/ezwebdavcontentbackend.php
public function setProperty( $path, ezcWebdavProperty $property )
    {
        if ( !in_array( $property->name, $this->handledLiveProperties, true ) )
        {
            return false;
        }

        // @as @todo implement setting properties
        // @todo implement locking and unlocking based on the code
        // lock:
        // replace 30607 with your object ID
        // $object = eZContentObject::fetch( 30607 );
        // $stateGroup = eZContentObjectStateGroup::fetchByIdentifier( 'ez_lock' );
        // $state = eZContentObjectState::fetchByIdentifier( 'locked', $stateGroup->attribute( 'id' ) );
        // $object->assignState( $state );

        // unlock:
        // $state = eZContentObjectState::fetchByIdentifier( 'not_locked', $stateGroup->attribute( 'id' ) );
        // $object->assignState( $state );

        // Get namespace property storage
        $storage = new ezcWebdavBasicPropertyStorage();

        // Attach property to store
        $storage->attach( $property );

        // Store document back
        $this->storeProperties( $path, $storage );

        return true;
    }
public function setProperty( $path, ezcWebdavProperty $property )
    {
        if ( !in_array( $property->name, $this->handledLiveProperties, true ) )
        {
            return false;
        }

        // @as @todo implement setting properties
        // @todo implement locking and unlocking based on the code
        // lock:
        // replace 30607 with your object ID
        // $object = eZContentObject::fetch( 30607 );
        // $stateGroup = eZContentObjectStateGroup::fetchByIdentifier( 'ez_lock' );
        // $state = eZContentObjectState::fetchByIdentifier( 'locked', $stateGroup->attribute( 'id' ) );
        // $object->assignState( $state );

        // unlock:
        // $state = eZContentObjectState::fetchByIdentifier( 'not_locked', $stateGroup->attribute( 'id' ) );
        // $object->assignState( $state );

        // Get namespace property storage
        $storage = new ezcWebdavBasicPropertyStorage();

        // Attach property to store
        $storage->attach( $property );

        // Store document back
        $this->storeProperties( $path, $storage );

        return true;
    }
public function setProperty ( $ path , ezcWebdavProperty $ property ) { if ( ! in_array ( $ property -> name , $ this -> handledLiveProperties , true ) ) { return false ; } // @as @todo implement setting properties // @todo implement locking and unlocking based on the code // lock: // replace 30607 with your object ID // $object = eZContentObject::fetch( 30607 ); // $stateGroup = eZContentObjectStateGroup::fetchByIdentifier( 'ez_lock' ); // $state = eZContentObjectState::fetchByIdentifier( 'locked', $stateGroup->attribute( 'id' ) ); // $object->assignState( $state ); // unlock: // $state = eZContentObjectState::fetchByIdentifier( 'not_locked', $stateGroup->attribute( 'id' ) ); // $object->assignState( $state ); // Get namespace property storage $ storage = new ezcWebdavBasicPropertyStorage ( ) ; // Attach property to store $ storage -> attach ( $ property ) ; // Store document back $ this -> storeProperties ( $ path , $ storage ) ; return true ; }
Manually sets a property on a resource.

Sets the given $propertyBackup for the resource identified by $path.

@param string $path
@param ezcWebdavProperty $property
@return bool
Manually sets a property on a resource .