public function setState($state=0, $ids=array())
	{
		if (count($ids) <= 0)
		{
			return false;
		}

		$ids = array_map('intval', $ids);

		return $this->update()
			->set(array('state' => $state))
			->whereIn('id', $ids)
			->execute();
	}
public function setState($state=0, $ids=array())
	{
		if (count($ids) <= 0)
		{
			return false;
		}

		$ids = array_map('intval', $ids);

		return $this->update()
			->set(array('state' => $state))
			->whereIn('id', $ids)
			->execute();
	}
public function setState ( $ state = 0 , $ ids = array ( ) ) { if ( count ( $ ids ) <= 0 ) { return false ; } $ ids = array_map ( 'intval' , $ ids ) ; return $ this -> update ( ) -> set ( array ( 'state' => $ state ) ) -> whereIn ( 'id' , $ ids ) -> execute ( ) ; }
Set the state of multiple messages

@param   integer  $state  State to set
@param   array    $ids    List of message IDs
@return  boolean  True on success
Set the state of multiple messages