phpDocumentor Install
[ class tree: Install ] [ index: Install ] [ all elements ]

Class: StorageSetupStep

Source Location: /install/steps/StorageSetupStep.class

Class StorageSetupStep

Method Summary
void   isRedoable()  
void   loadTemplateData()  
void   processRequest()  
void   stepName()  
array(boolean   _isStoragePathWebAccessible()   Try to protect the given folder with a .htaccess file from direct web-access.
array(boolean   _isUrlAccessible()   Try to fetch a a probe file from the storage folder and check if the returned page contains the probe string. If so, the storage folder is web-accessible (read: not secure).

[ Top ]
Methods
isRedoable  [line 155]

  void isRedoable( )



Redefinition of:
InstallStep::isRedoable()

[ Top ]
loadTemplateData  [line 34]

  void loadTemplateData( &$templateData  )

Parameters:
   &$templateData: 


Redefinition of:
InstallStep::loadTemplateData()

[ Top ]
processRequest  [line 146]

  void processRequest( )



Redefinition of:
InstallStep::processRequest()

[ Top ]
stepName  [line 30]

  void stepName( )



Redefinition of:
InstallStep::stepName()

[ Top ]
_isStoragePathWebAccessible  [line 167]

  array(boolean _isStoragePathWebAccessible( $dir  )

Try to protect the given folder with a .htaccess file from direct web-access.

And then check if the given folder is web-accessible either way. Precondition: gallery and g2data folders exist.

Parameters:
   $dir: 

API Tags:
Return:  false if check procedure failed due to platform issues, boolean true if the folder is accessible from the web (=insecure))


[ Top ]
_isUrlAccessible  [line 258]

  array(boolean _isUrlAccessible( string $url, string $probeString  )

Try to fetch a a probe file from the storage folder and check if the returned page contains the probe string. If so, the storage folder is web-accessible (read: not secure).

Parameters:
string   $url:  the URL that should be fetched
string   $probeString:  expected string from the fetched file

API Tags:
Return:  false if check procedure failed due to platform issues, boolean true if the folder is accessible from the web (=insecure))


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:57:42 -0700 by phpDocumentor 1.3.0RC6