"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Module.php" between
canopy-3.0.4.tar.gz and canopy-3.0.5.tar.gz

About: Canopy provides a complete web site content management system (successor of "phpwebsite").

Module.php  (canopy-3.0.4):Module.php  (canopy-3.0.5)
<?php <?php
namespace Canopy; namespace Canopy;
/** /**
* @author Matthew McNaney <mcnaneym@appstate.edu> * @author Matthew McNaney <mcnaneym@appstate.edu>
* @package phpws2 * @package phpws2
* @license http://opensource.org/licenses/lgpl-3.0.html * @license http://opensource.org/licenses/lgpl-3.0.html
*/ */
/** /**
* Base abstract class for all modules. Every Module class is expect to * Base abstract class for all modules. Every Module class is expect to
skipping to change at line 187 skipping to change at line 188
public function execute(Request $request) public function execute(Request $request)
{ {
$controller = $this->getController($request); $controller = $this->getController($request);
if (!($controller instanceof Controller)) { if (!($controller instanceof Controller)) {
if (is_object($controller)) { if (is_object($controller)) {
$type = 'Object ' . get_class($controller); $type = 'Object ' . get_class($controller);
} else { } else {
$type = gettype($controller); $type = gettype($controller);
} }
throw new \Exception(sprintf('The value [%s] returned by getControll throw new \Exception(sprintf('The value [%s] returned by getControll
er was not a Controller.', $type)); er was not a Controller.',
$type));
} }
// TODO: Implement event manager and fire a beforeExecute event // TODO: Implement event manager and fire a beforeExecute event
$response = $controller->execute($request); $response = $controller->execute($request);
// TODO: Implement event manager and fire an afterExecute event // TODO: Implement event manager and fire an afterExecute event
return $response; return $response;
} }
skipping to change at line 349 skipping to change at line 351
public function setDeprecated($deprecated) public function setDeprecated($deprecated)
{ {
$this->deprecated = (bool) $deprecated; $this->deprecated = (bool) $deprecated;
} }
public function isDeprecated($deprecated) public function isDeprecated($deprecated)
{ {
return (bool) $this->deprecated; return (bool) $this->deprecated;
} }
/**
* Returns true if the file version is greater than the current db version.
* @return boolean
*/
public function needsUpdate()
{
if (empty($this->file_version)) {
$this->loadFileVersion();
}
return version_compare($this->file_version, $this->version, '>');
}
public function loadFileVersion()
{
include PHPWS_SOURCE_DIR . 'mod/' . $this->title . '/boost/boost.php';
$this->file_version = $version;
}
} }
interface SettingDefaults interface SettingDefaults
{ {
public function getSettingDefaults(); public function getSettingDefaults();
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)