40 lines
901 B
PHP
40 lines
901 B
PHP
<?php
|
|
/**
|
|
* Nextcloud - Gallery
|
|
*
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
* @author Olivier Paroz <galleryapps@oparoz.com>
|
|
*
|
|
* @copyright Olivier Paroz 2017
|
|
*/
|
|
|
|
namespace Page;
|
|
|
|
class Gallery
|
|
{
|
|
// include url of current page
|
|
public static $URL = '/index.php/apps/gallery/';
|
|
public static $contentDiv = '#content.app-gallery';
|
|
|
|
/**
|
|
* Declare UI map for this page here. CSS or XPath allowed.
|
|
* public static $usernameField = '#username';
|
|
* public static $formSubmitButton = "#mainForm input[type=submit]";
|
|
*/
|
|
|
|
/**
|
|
* Basic route example for your current URL
|
|
* You can append any additional parameter to URL
|
|
* and use it in tests like: Page\Edit::route('/123-post');
|
|
*/
|
|
public static function route($param)
|
|
{
|
|
return static::$URL.$param;
|
|
}
|
|
|
|
|
|
}
|