* @copyright 2018 Areama * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of Areama */ include_once dirname(__FILE__).'/../ArSeoModel.php'; class ArSeoProURLGeneral extends ArSeoModel { const CONFIG_PREFIX = 'ars_'; public $remove_def_lang; public function rules() { return array( array( array( 'remove_def_lang' ), 'safe' ) ); } public function attributeLabels() { return array( 'remove_def_lang' => $this->l('Remove default language from URL', 'ArSeoProURLGeneral') ); } public function __construct($module, $configPrefix = null, $owner = null) { parent::__construct($module, $configPrefix); $this->owner = $owner; $this->configPrefix = $this->getConfigPrefix(); } public function getConfigPrefix() { return self::CONFIG_PREFIX; } public static function getConfigTab() { return 'url'; } public function attributeTypes() { return array( 'remove_def_lang' => 'switch' ); } }