public function getMaxPosition(int $pageId): int
	{
		return $this->connection->query('SELECT IFNULL(MAX([position]), 0) position FROM %table WHERE [pageId] = %i', $this->getTableName(), $pageId)->fetch()->position;
	}
public function getMaxPosition(int $pageId): int
	{
		return $this->connection->query('SELECT IFNULL(MAX([position]), 0) position FROM %table WHERE [pageId] = %i', $this->getTableName(), $pageId)->fetch()->position;
	}
public function getMaxPosition ( int $ pageId ) : int { return $ this -> connection -> query ( 'SELECT IFNULL(MAX([position]), 0) position FROM %table WHERE [pageId] = %i' , $ this -> getTableName ( ) , $ pageId ) -> fetch ( ) -> position ; }
Vrati nejvetsi pozici
@param int $pageId
@return int
@throws QueryException
Vrati nejvetsi pozici