english/libraries/joomla/database/table/content.php
/**
	 * Overloaded bind function
	 *
	 * @param   array  $array   Named array
	 * @param   mixed  $ignore  An optional array or space separated list of properties
	 *                          to ignore while binding.
	 *
	 * @return  mixed  Null if operation was satisfactory, otherwise returns an error string
	 *
	 * @see     JTable:bind
	 * @since   11.1
	 */
Overloaded bind function
@param   array  $array   Named array
@param   mixed  $ignore  An optional array or space separated list of properties
to ignore while binding.

@return  mixed  Null if operation was satisfactory, otherwise returns an error string


Overloaded bind function @param array $array Named array @param mixed $ignore An optional array or space separated list of properties to ignore while binding . @return mixed Null if operation was satisfactory otherwise returns an error string
public function bind($array, $ignore = '')
	{
		if (isset($array['articletext'])) {
			$pattern = '#<hr\s+id=("|\')system-readmore("|\')\s*\/*>#i';
			$tagPos	= preg_match($pattern, $array['articletext']);
			if ($tagPos == 0) {
				$this->introtext	= $array['articletext'];
				$this->fulltext         = '';
			} else {
				list($this->introtext, $this->fulltext) = preg_split($pattern, $array['articletext'], 2);
			}
		}
		if (isset($array['attribs']) && is_array($array['attribs'])) {
			$registry = new JRegistry;
			$registry->loadArray($array['attribs']);
			$array['attribs'] = (string)$registry;
		}
		if (isset($array['metadata']) && is_array($array['metadata'])) {
			$registry = new JRegistry;
			$registry->loadArray($array['metadata']);
			$array['metadata'] = (string)$registry;
		}
		if (isset($array['rules']) && is_array($array['rules'])) {
			$rules = new JRules($array['rules']);
			$this->setRules($rules);
		}
		return parent::bind($array, $ignore);
	}
public function bind ( $ array , $ ignore = '' ) { if ( isset ( $ array [ 'articletext' ] ) ) { $ pattern = '#<hr\s+id=("|\')system-readmore("|\')\s*\/*>#i' ; $ tagPos = preg_match ( $ pattern , $ array [ 'articletext' ] ) ; if ( $ tagPos == 0 ) { $ this -> introtext = $ array [ 'articletext' ] ; $ this -> fulltext = '' ; } else { list ( $ this -> introtext , $ this -> fulltext ) = preg_split ( $ pattern , $ array [ 'articletext' ] , 2 ) ; } } if ( isset ( $ array [ 'attribs' ] ) && is_array ( $ array [ 'attribs' ] ) ) { $ registry = new JRegistry ; $ registry -> loadArray ( $ array [ 'attribs' ] ) ; $ array [ 'attribs' ] = ( string ) $ registry ; } if ( isset ( $ array [ 'metadata' ] ) && is_array ( $ array [ 'metadata' ] ) ) { $ registry = new JRegistry ; $ registry -> loadArray ( $ array [ 'metadata' ] ) ; $ array [ 'metadata' ] = ( string ) $ registry ; } if ( isset ( $ array [ 'rules' ] ) && is_array ( $ array [ 'rules' ] ) ) { $ rules = new JRules ( $ array [ 'rules' ] ) ; $ this -> setRules ( $ rules ) ; } return parent :: bind ( $ array , $ ignore ) ; }
Overloaded bind function
 @param   array  $array   Named array
 @param   mixed  $ignore  An optional array or space separated list of properties
                          to ignore while binding.
Overloaded bind function @param array $array Named array @param mixed $ignore An optional array or space separated list of properties to ignore while binding .
// Search for the {readmore} tag and split the text up accordingly. // Bind the rules.