Added visibility in some methods and attributes.

This commit is contained in:
Juan Basso 2011-08-18 22:16:16 -04:00
parent 16ef234180
commit 0575e92833
16 changed files with 27 additions and 27 deletions

View file

@ -142,7 +142,7 @@ class Shell extends Object {
* @param ConsoleOutput $stderr A ConsoleOutput object for stderr.
* @param ConsoleInput $stdin A ConsoleInput object for stdin.
*/
function __construct($stdout = null, $stderr = null, $stdin = null) {
public function __construct($stdout = null, $stderr = null, $stdin = null) {
if ($this->name == null) {
$this->name = Inflector::camelize(str_replace(array('Shell', 'Task'), '', get_class($this)));
}

View file

@ -263,7 +263,7 @@ class DbAcl extends Object implements AclInterface {
* Constructor
*
*/
function __construct() {
public function __construct() {
parent::__construct();
App::uses('AclNode', 'Model');
$this->Aro = ClassRegistry::init(array('class' => 'Aro', 'alias' => 'Aro'));

View file

@ -27,7 +27,7 @@ App::uses('BaseAuthenticate', 'Controller/Component/Auth');
*
* In your controller's components array, add auth + the required settings.
* {{{
* var $components = array(
* public $components = array(
* 'Auth' => array(
* 'authenticate' => array('Basic')
* )

View file

@ -30,7 +30,7 @@ App::uses('BaseAuthenticate', 'Controller/Component/Auth');
*
* In your controller's components array, add auth + the required settings.
* {{{
* var $components = array(
* public $components = array(
* 'Auth' => array(
* 'authenticate' => array('Digest')
* )

View file

@ -98,7 +98,7 @@ class EmailComponent extends Component {
*
* @var string
*/
var $date = null;
public $date = null;
/**
* The subject of the email

View file

@ -90,7 +90,7 @@ class RequestHandlerComponent extends Component {
* @param ComponentCollection $collection ComponentCollection object.
* @param array $settings Array of settings.
*/
function __construct(ComponentCollection $collection, $settings = array()) {
public function __construct(ComponentCollection $collection, $settings = array()) {
$this->addInputType('xml', array(array($this, '_convertXml')));
parent::__construct($collection, $settings);
}

View file

@ -43,7 +43,7 @@ class FileLog implements CakeLogInterface {
*
* @param array $options Options for the FileLog, see above.
*/
function __construct($options = array()) {
public function __construct($options = array()) {
$options += array('path' => LOGS);
$this->_path = $options['path'];
}

View file

@ -299,7 +299,7 @@ class Postgres extends DboSource {
* and if 1, sequences are not modified
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
*/
function truncate($table, $reset = 0) {
public function truncate($table, $reset = 0) {
$table = $this->fullTableName($table, false);
if (!isset($this->_sequenceMap[$table])) {
$cache = $this->cacheSources;

View file

@ -33,28 +33,28 @@ class Sqlite extends DboSource {
*
* @var string
*/
var $description = "SQLite DBO Driver";
public $description = "SQLite DBO Driver";
/**
* Quote Start
*
* @var string
*/
var $startQuote = '"';
public $startQuote = '"';
/**
* Quote End
*
* @var string
*/
var $endQuote = '"';
public $endQuote = '"';
/**
* Base configuration settings for SQLite3 driver
*
* @var array
*/
var $_baseConfig = array(
protected $_baseConfig = array(
'persistent' => false,
'database' => null
);
@ -64,7 +64,7 @@ class Sqlite extends DboSource {
*
* @var array
*/
var $columns = array(
public $columns = array(
'primary_key' => array('name' => 'integer primary key autoincrement'),
'string' => array('name' => 'varchar', 'limit' => '255'),
'text' => array('name' => 'text'),
@ -83,7 +83,7 @@ class Sqlite extends DboSource {
*
* @var array
*/
var $fieldParameters = array(
public $fieldParameters = array(
'collate' => array(
'value' => 'COLLATE',
'quote' => false,

View file

@ -47,7 +47,7 @@
* than a normal behavior mixin method.
*
* {{{
* var $mapMethods = array('/do(\w+)/' => 'doSomething');
* public $mapMethods = array('/do(\w+)/' => 'doSomething');
*
* function doSomething($model, $method, $arg1, $arg2) {
* //do something

View file

@ -431,7 +431,7 @@ class HttpResponse implements ArrayAccess {
*
* @return string
*/
function __toString() {
public function __toString() {
return $this->body();
}

View file

@ -336,7 +336,7 @@ class Validation {
* @see Validation::date
* @see Validation::time
*/
function datetime($check, $dateFormat = 'ymd', $regex = null) {
public function datetime($check, $dateFormat = 'ymd', $regex = null) {
$valid = false;
$parts = explode(' ', $check);
if (!empty($parts) && count($parts) > 1) {

View file

@ -46,6 +46,13 @@ class CacheHelper extends AppHelper {
*/
protected $_match = array();
/**
* Counter used for counting nocache section tags.
*
* @var integer
*/
protected $_counter = 0;
/**
* Parses the view file and stores content for cache file building.
*
@ -73,13 +80,6 @@ class CacheHelper extends AppHelper {
$this->_View->output = preg_replace('/<!--\/?nocache-->/', '', $this->_View->output);
}
/**
* Counter used for counting nocache section tags.
*
* @var integer
*/
var $_counter = 0;
/**
* Main method used to cache a view
*

View file

@ -2203,7 +2203,7 @@ class FormHelper extends AppHelper {
* @param boolean $setScope Sets the view scope to the model specified in $tagValue
* @return void
*/
function setEntity($entity, $setScope = false) {
public function setEntity($entity, $setScope = false) {
parent::setEntity($entity, $setScope);
$parts = explode('.', $entity);
$field = $this->_introspectModel($this->_modelScope, 'fields', $parts[0]);

View file

@ -65,7 +65,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
* @param View $View
* @param array $settings
*/
function __construct($View, $settings = array()) {
public function __construct($View, $settings = array()) {
parent::__construct($View, $settings);
}

View file

@ -94,7 +94,7 @@ class PaginatorHelper extends AppHelper {
* @param array $settings Array of settings.
* @throws CakeException When the AjaxProvider helper does not implement a link method.
*/
function __construct(View $View, $settings = array()) {
public function __construct(View $View, $settings = array()) {
$ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
$this->helpers[] = $ajaxProvider;
$this->_ajaxHelperClass = $ajaxProvider;