1<?php 2 3 4/* 5 * Copyright (C) e107 Inc (e107.org), Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt) 6 * $Id$ 7 * 8 * System routing config 9 */ 10 11 12class plugin_gallery_url extends eUrlConfig 13{ 14 15 public function config() 16 { 17 return array( 18 19 'config' => array( 20 'allowMain' => true, 21 'format' => 'path', // get|path - notify core for the current URL format, if set to 'get' rules will be ignored 22 'defaultRoute' => 'index/category', // [optional] default empty; route (no leading module) used when module is found with no additional controller/action information e.g. /news/ 23 24 // false - disable all parameters passed to assemble method by default 25 'allowVars' => array('cat', 'frm'), 26 ), 27 28 // rule set array 29 'rules' => array( 30 '/' => 'index/category', 31 'list' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm'), 'allowVars' => array('cat', 'frm'),), 32 ) 33 ); 34 } 35 36 /** 37 * Admin callback 38 * Language file not loaded as all language data is inside the lan_eurl.php (loaded by default on administration URL page) 39 */ 40 public function admin() 41 { 42 // static may be used for performance - XXX LANS 43 static $admin = array( 44 'labels' => array( 45 'name' => LAN_PLUGIN_GALLERY_TITLE, // Module name 46 'label' => LAN_PLUGIN_GALLERY_SEF_04, // Current profile name 47 'description' => LAN_PLUGIN_GALLERY_SEF_03, 48 'examples' => array("{e_PLUGIN_ABS}gallery/?cat=gallery_1") 49 ), 50 'form' => array(), // Under construction - additional configuration options 51 'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity 52 ); 53 54 return $admin; 55 } 56} 57