Skip to content

Commit

Permalink
Fix docblock and declaration of _populateState and _getStoreId.
Browse files Browse the repository at this point in the history
git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@12415 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
  • Loading branch information
eddieajau committed Jul 3, 2009
1 parent 8bdbbd7 commit e8d5a4c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
12 changes: 4 additions & 8 deletions administrator/components/com_categories/models/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ class CategoriesModelCategories extends JModelList
public $_context = 'com_categories.articles';

/**
* Overridden method to lazy load data from the request/session as necessary
* Method to auto-populate the model state.
*
* @access public
* @param string $key The key of the state item to return
* @param mixed $default The default value to return if it does not exist
* @return mixed The requested value by key
* @since 1.0
* @since 1.6
*/
function _populateState()
protected function _populateState()
{
$app = &JFactory::getApplication();

Expand Down Expand Up @@ -76,7 +72,7 @@ function _populateState()
*
* @return string A store id.
*/
public function _getStoreId($id = '')
protected function _getStoreId($id = '')
{
// Compile the store id.
$id .= ':'.$this->getState('list.start');
Expand Down
12 changes: 4 additions & 8 deletions administrator/components/com_content/models/articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ class ContentModelArticles extends JModelList
public $_context = 'com_content.articles';

/**
* Overridden method to lazy load data from the request/session as necessary
* Method to auto-populate the model state.
*
* @access public
* @param string $key The key of the state item to return
* @param mixed $default The default value to return if it does not exist
* @return mixed The requested value by key
* @since 1.0
* @since 1.6
*/
function _populateState()
protected function _populateState()
{
$app = &JFactory::getApplication();

Expand Down Expand Up @@ -76,7 +72,7 @@ function _populateState()
*
* @return string A store id.
*/
public function _getStoreId($id = '')
protected function _getStoreId($id = '')
{
// Compile the store id.
$id .= ':'.$this->getState('list.start');
Expand Down
5 changes: 4 additions & 1 deletion components/com_users/models/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
class UsersModelProfile extends JModelItem
{
/**
* Method to auto-populate the model state.
*
* @since 1.6
*/
function _populateState($property = null, $default = null)
protected function _populateState($property = null, $default = null)
{
// Get the application object.
$app = &JFactory::getApplication();
Expand Down
5 changes: 4 additions & 1 deletion components/com_users/models/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
class UsersModelRegistration extends JModel
{
/**
* Method to auto-populate the model state.
*
* @since 1.6
*/
function _populateState()
protected function _populateState()
{
// Get the application object.
$app = &JFactory::getApplication();
Expand Down
5 changes: 4 additions & 1 deletion components/com_users/models/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
class UsersModelUser extends JModelForm
{
/**
* Method to auto-populate the model state.
*
* @since 1.6
*/
function _populateState($property = null, $default = null)
protected function _populateState($property = null, $default = null)
{
// Get the application object.
$app = &JFactory::getApplication();
Expand Down

0 comments on commit e8d5a4c

Please sign in to comment.