protected function _is_resource_writable($resource)
    {
        // if resource does not exist -> we check the level before current level (..)
        // (can be either file or folder) for existence and it it's writable
        if (!$this->_resource_exists($resource)) {
            $realResource = dirname($resource);
        } else {
            $realResource = $resource;
        }

        // now check
        if (!$this->_is_writable($realResource)) {
            return false;
        }

        // file|folder is writable
        return true;
    }
protected function _is_resource_writable($resource)
    {
        // if resource does not exist -> we check the level before current level (..)
        // (can be either file or folder) for existence and it it's writable
        if (!$this->_resource_exists($resource)) {
            $realResource = dirname($resource);
        } else {
            $realResource = $resource;
        }

        // now check
        if (!$this->_is_writable($realResource)) {
            return false;
        }

        // file|folder is writable
        return true;
    }
protected function _is_resource_writable ( $ resource ) { // if resource does not exist -> we check the level before current level (..) // (can be either file or folder) for existence and it it's writable if ( ! $ this -> _resource_exists ( $ resource ) ) { $ realResource = dirname ( $ resource ) ; } else { $ realResource = $ resource ; } // now check if ( ! $ this -> _is_writable ( $ realResource ) ) { return false ; } // file|folder is writable return true ; }
checks if a file or folder is writable by this class' write methods

checks if a file or folder is writable by this class' write methods

@param string $resource The resource to check if writable

@author Benjamin Carl <opensource@clickalicious.de>
@return bool True if resource is writable
@throws Doozr_Base_Exception_Generic
@access protected
checks if a file or folder is writable by this class write methods