english/administrator/components/com_templates/tables/style.php
/**
	 * Overloaded bind function to pre-process the params.
	 *
	 * @param	array		Named array
	 * @return	null|string	null is operation was satisfactory, otherwise returns an error
	 * @see JTable:bind
	 * @since 1.5
	 */
Overloaded bind function to pre-process the params.
@param       array           Named array
@return      null|string     null is operation was satisfactory, otherwise returns an error
@see JTable:bind
@since 1.5
Overloaded bind function to pre - process the params . @param array Named array @return null|string null is operation was satisfactory otherwise returns an error @see JTable : bind @since 1 . 5
public function bind($array, $ignore = '')
	{
		if (isset($array['params']) && is_array($array['params']))
		{
			$registry = new JRegistry();
			$registry->loadArray($array['params']);
			$array['params'] = (string)$registry;
		}
		if ($array['home']=='0' && $this->home=='1') {
			$this->setError(JText::_('COM_TEMPLATES_ERROR_CANNOT_UNSET_DEFAULT_STYLE'));
			return false;
		}
		return parent::bind($array, $ignore);
	}
public function bind ( $ array , $ ignore = '' ) { if ( isset ( $ array [ 'params' ] ) && is_array ( $ array [ 'params' ] ) ) { $ registry = new JRegistry ( ) ; $ registry -> loadArray ( $ array [ 'params' ] ) ; $ array [ 'params' ] = ( string ) $ registry ; } if ( $ array [ 'home' ] == '0' && $ this -> home == '1' ) { $ this -> setError ( JText :: _ ( 'COM_TEMPLATES_ERROR_CANNOT_UNSET_DEFAULT_STYLE' ) ) ; return false ; } return parent :: bind ( $ array , $ ignore ) ; }
Overloaded bind function to pre-process the params.
Overloaded bind function to pre - process the params .
// Verify that the default style is not unset