phpDocumentor Rewrite
PHPUnit
[ class tree: Rewrite ] [ index: Rewrite ] [ all elements ]

Class: RewriteApiMockParser

Source Location: /modules/rewrite/test/phpunit/RewriteApiTest.class

Class RewriteApiMockParser

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From RewriteParser

RewriteParser::$_parserId
RewriteParser::$_type
RewriteParser::$_urlGeneratorId

Inherited From RewriteParser

RewriteParser::fetchEmbedConfig()
RewriteParser::getErrorMessage()
Returns translated error message, called from AdminRewrite when an unsucsessful save has been made. A valid $code is anything that $this->saveActiveRules would return if an error occurs.
RewriteParser::getParserId()
RewriteParser::getParserType()
RewriteParser::getUrlGeneratorId()
RewriteParser::handleAdminParserRequest()
Handles the submitted form and should save the settings.
RewriteParser::handleTestResultsRequest()
Handles the submitted form and should save any settings (ie. forced tests).
RewriteParser::isValidRule()
This function is called when new rules are saved and by rewrite.AdminRewrite to know if this rule should be displayed. If the parser overrides this function it needs to call this (the parent). It also verifies that locked rules are saved with the original pattern. We perform a sanity check to minimize possible conflicts and bad regular expressions.
RewriteParser::loadAdminParserTemplate()
Displays the parser configuration if the template variable $AdminParser.body is set. It should be a Gallery base dir relative path.
RewriteParser::loadTestResultsTemplate()
Displays the test results if the template variable $TestResults.body is set. It should be a Gallery base dir relative path.
RewriteParser::needsConfiguration()
By default there's nothing to configure, so we return success.
RewriteParser::needsEmbedConfig()
RewriteParser::saveAccessList()
Saves list of hosts Gallery allows as referrer and if Gallery should allow an empty referrer.
RewriteParser::saveActiveRules()
Saves the active rewrite rules. This needs to be implemented by the specific plugin. It needs to save two rewrite params, activeRules and shortUrls. activeRules is just a serialized array of the given activeRules and shortUrls is returned by RewriteHelper::parseActiveRules(). It returns REWRITE_STATUS_OK on success.
RewriteParser::saveEmbedConfig()
RewriteParser::_setParserId()
RewriteParser::_setParserType()
RewriteParser::_setUrlGeneratorId()

[ Top ]
Method Summary
RewriteApiMockParser   RewriteApiMockParser()  
void   fetchEmbedConfig()  
void   needsEmbedConfig()  
void   saveActiveRules()  
void   saveEmbedConfig()  

[ Top ]
Methods
Constructor RewriteApiMockParser  [line 383]

  RewriteApiMockParser RewriteApiMockParser( )



[ Top ]
fetchEmbedConfig  [line 392]

  void fetchEmbedConfig( )



Redefinition of:
RewriteParser::fetchEmbedConfig()

[ Top ]
needsEmbedConfig  [line 388]

  void needsEmbedConfig( )



Redefinition of:
RewriteParser::needsEmbedConfig()

[ Top ]
saveActiveRules  [line 404]

  void saveActiveRules( $activeRules  )

Parameters:
   $activeRules: 


Redefinition of:
RewriteParser::saveActiveRules()
Saves the active rewrite rules. This needs to be implemented by the specific plugin. It needs to save two rewrite params, activeRules and shortUrls. activeRules is just a serialized array of the given activeRules and shortUrls is returned by RewriteHelper::parseActiveRules(). It returns REWRITE_STATUS_OK on success.

[ Top ]
saveEmbedConfig  [line 396]

  void saveEmbedConfig( $params  )

Parameters:
   $params: 


Redefinition of:
RewriteParser::saveEmbedConfig()

[ Top ]

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