english/components/com_content/models/categories.php
/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @since	1.6
	 */
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.


Method to auto - populate the model state . Note . Calling getState in this method will result in recursion .
protected function populateState()
	{
		$app = JFactory::getApplication();
		$this->setState('filter.extension', $this->_extension);
		$parentId = JRequest::getInt('id');
		$this->setState('filter.parentId', $parentId);
		$params = $app->getParams();
		$this->setState('params', $params);
		$this->setState('filter.published',	1);
		$this->setState('filter.access',	true);
	}
protected function populateState ( ) { $ app = JFactory :: getApplication ( ) ; $ this -> setState ( 'filter.extension' , $ this -> _extension ) ; $ parentId = JRequest :: getInt ( 'id' ) ; $ this -> setState ( 'filter.parentId' , $ parentId ) ; $ params = $ app -> getParams ( ) ; $ this -> setState ( 'params' , $ params ) ; $ this -> setState ( 'filter.published' , 1 ) ; $ this -> setState ( 'filter.access' , true ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Get the parent id if defined.