public static function history($limit=50, $uid=null)
	{
		$model = self::all();

		if ($limit)
		{
			$model->limit((int)$limit);
		}

		if ($uid)
		{
			$model->whereEquals('uid', $uid);
		}

		return $model->order('created', 'desc')->rows();
	}
public static function history($limit=50, $uid=null)
	{
		$model = self::all();

		if ($limit)
		{
			$model->limit((int)$limit);
		}

		if ($uid)
		{
			$model->whereEquals('uid', $uid);
		}

		return $model->order('created', 'desc')->rows();
	}
public static function history ( $ limit = 50 , $ uid = null ) { $ model = self :: all ( ) ; if ( $ limit ) { $ model -> limit ( ( int ) $ limit ) ; } if ( $ uid ) { $ model -> whereEquals ( 'uid' , $ uid ) ; } return $ model -> order ( 'created' , 'desc' ) -> rows ( ) ; }
Get a history of transactions for a user

@param   integer  $limit  Number of records to return
@param   integer  $uid    User ID
@return  mixed    False if errors, array on success
Get a history of transactions for a user