english/administrator/components/com_contact/models/contact.php
/**
	 * Batch access level changes for a group of rows.
	 *
	 * @param	int		$value	The new value matching an Asset Group ID.
	 * @param	array	$pks	An array of row IDs.
	 *
	 * @return	booelan	True if successful, false otherwise and internal error is set.
	 * @since	1.6
	 */
Batch access level changes for a group of rows.
@param       int             $value  The new value matching an Asset Group ID.
@param       array   $pks    An array of row IDs.

@return      booelan True if successful, false otherwise and internal error is set.
Batch access level changes for a group of rows . @param int $value The new value matching an Asset Group ID . @param array $pks An array of row IDs . @return booelan True if successful false otherwise and internal error is set .
protected function _batchAccess($value, $pks)
	{
		$table = $this->getTable();
		foreach ($pks as $pk)
		{
			$table->reset();
			$table->load($pk);
			$table->access = (int) $value;
			if (!$table->store()) {
				$this->setError($table->getError());
				return false;
			}
		}
		return true;
	}
protected function _batchAccess ( $ value , $ pks ) { $ table = $ this -> getTable ( ) ; foreach ( $ pks as $ pk ) { $ table -> reset ( ) ; $ table -> load ( $ pk ) ; $ table -> access = ( int ) $ value ; if ( ! $ table -> store ( ) ) { $ this -> setError ( $ table -> getError ( ) ) ; return false ; } } return true ; }
Batch access level changes for a group of rows.
Batch access level changes for a group of rows .