-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'security/3.5.4' into 3.6.0
- Loading branch information
Showing
7 changed files
with
96 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
<?php | ||
class Page extends SiteTree { | ||
|
||
private static $db = array( | ||
); | ||
|
||
private static $has_one = array( | ||
); | ||
|
||
} | ||
class Page_Controller extends ContentController { | ||
|
||
/** | ||
* An array of actions that can be accessed via a request. Each array element should be an action name, and the | ||
* permissions or conditions required to allow the user to access it. | ||
* | ||
* <code> | ||
* array ( | ||
* 'action', // anyone can access this action | ||
* 'action' => true, // same as above | ||
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action | ||
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true | ||
* ); | ||
* </code> | ||
* | ||
* @var array | ||
*/ | ||
private static $allowed_actions = array ( | ||
); | ||
|
||
public function init() { | ||
parent::init(); | ||
// You can include any CSS or JS required by your project here. | ||
// See: http://doc.silverstripe.org/framework/en/reference/requirements | ||
} | ||
class Page extends SiteTree | ||
{ | ||
private static $db = array( | ||
); | ||
|
||
private static $has_one = array( | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
class Page_Controller extends ContentController | ||
{ | ||
/** | ||
* An array of actions that can be accessed via a request. Each array element should be an action name, and the | ||
* permissions or conditions required to allow the user to access it. | ||
* | ||
* <code> | ||
* array ( | ||
* 'action', // anyone can access this action | ||
* 'action' => true, // same as above | ||
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action | ||
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true | ||
* ); | ||
* </code> | ||
* | ||
* @var array | ||
*/ | ||
private static $allowed_actions = array( | ||
); | ||
|
||
public function init() | ||
{ | ||
parent::init(); | ||
// You can include any CSS or JS required by your project here. | ||
// See: http://doc.silverstripe.org/framework/en/reference/requirements | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="SS3"> | ||
<description>Coding standard for SilverStripe 3.x</description> | ||
|
||
<!-- Don't sniff third party libraries --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/thirdparty/*</exclude-pattern> | ||
|
||
<!-- Show progress and output sniff names on violation, and add colours --> | ||
<arg value="sp"/> | ||
<arg name="colors"/> | ||
|
||
<!-- Use PSR-2 as a base standard --> | ||
<rule ref="PSR2"> | ||
<!-- Allow classes to not declare a namespace --> | ||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> | ||
|
||
<!-- Allow underscores in class names --> | ||
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/> | ||
|
||
<!-- Allow non camel cased method names --> | ||
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> | ||
</rule> | ||
</ruleset> |