Merge pull request #93 from halkyon/e_strict_fixes

E_STRICT compliance fixes for CMS module
This commit is contained in:
Sam Minnée 2012-04-11 16:30:46 -07:00
commit 117b8c3f97
3 changed files with 13 additions and 12 deletions

View File

@ -108,8 +108,8 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
* Returns the Breadcrumbs for the ReportAdmin * Returns the Breadcrumbs for the ReportAdmin
* @return ArrayList * @return ArrayList
*/ */
public function Breadcrumbs() { public function Breadcrumbs($unlinked = false) {
$items = parent::Breadcrumbs(); $items = parent::Breadcrumbs($unlinked);
// The root element should explicitly point to the root node. // The root element should explicitly point to the root node.
// Uses session state for current record otherwise. // Uses session state for current record otherwise.

View File

@ -26,7 +26,15 @@ abstract class StaticPublisher extends DataExtension {
abstract function publishPages($pages); abstract function publishPages($pages);
abstract function unpublishPages($pages); abstract function unpublishPages($pages);
static function set_static_publisher_theme($theme){
self::$static_publisher_theme=$theme;
}
static function static_publisher_theme(){
return self::$static_publisher_theme;
}
static function echo_progress() { static function echo_progress() {
return (boolean)self::$echo_progress; return (boolean)self::$echo_progress;
} }
@ -144,13 +152,6 @@ abstract class StaticPublisher extends DataExtension {
return $urls; return $urls;
} }
function set_static_publisher_theme($theme){
self::$static_publisher_theme=$theme;
}
function static_publisher_theme(){
return self::$static_publisher_theme;
}
} }

View File

@ -61,7 +61,7 @@ class WidgetAreaEditor extends FormField {
return $this->form->getRecord()->getComponent($relationName)->ID; return $this->form->getRecord()->getComponent($relationName)->ID;
} }
function saveInto(DataObject $record) { function saveInto(DataObjectInterface $record) {
$name = $this->name; $name = $this->name;
$idName = $name . "ID"; $idName = $name . "ID";
@ -139,4 +139,4 @@ class WidgetAreaEditor extends FormField {
} }
} }
} }
} }