public function getRecords($uid, $type=null)
	{
		$entries = self::all()
			->whereEquals('uid', $uid);

		if ($type)
		{
			$entries->whereEquals('type', $type);
		}

		return $entries
			->order('priority', 'asc')
			->rows();
	}
public function getRecords($uid, $type=null)
	{
		$entries = self::all()
			->whereEquals('uid', $uid);

		if ($type)
		{
			$entries->whereEquals('type', $type);
		}

		return $entries
			->order('priority', 'asc')
			->rows();
	}
public function getRecords ( $ uid , $ type = null ) { $ entries = self :: all ( ) -> whereEquals ( 'uid' , $ uid ) ; if ( $ type ) { $ entries -> whereEquals ( 'type' , $ type ) ; } return $ entries -> order ( 'priority' , 'asc' ) -> rows ( ) ; }
Get records for a user

@param   integer  $uid   User ID
@param   string   $type  Record type
@return  mixed    False if errors, array on success
Get records for a user