[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/modules/Settings/Profiles/models/ -> Module.php (source)

   1  <?php
   2  /*+***********************************************************************************
   3   * The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9   *************************************************************************************/
  10  
  11  /*
  12   * Settings Module Model Class
  13   */
  14  class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model {
  15  
  16      var $baseTable = 'vtiger_profile';
  17      var $baseIndex = 'profileid';
  18      var $listFields = array('profilename' => 'Name', 'description' => 'Description');
  19  
  20      const GLOBAL_ACTION_VIEW = 1;
  21      const GLOBAL_ACTION_EDIT = 2;
  22      const GLOBAL_ACTION_DEFAULT_VALUE = 1;
  23  
  24      const IS_PERMITTED_VALUE = 0;
  25      const NOT_PERMITTED_VALUE = 1;
  26  
  27      const FIELD_ACTIVE = 0;
  28      const FIELD_INACTIVE = 1;
  29      
  30      const FIELD_READWRITE = 0;
  31      const FIELD_READONLY = 1;
  32      
  33      var $name = 'Profiles';
  34  
  35      /**
  36       * Function to get the url for default view of the module
  37       * @return <string> - url
  38       */
  39  	public function getDefaultUrl() {
  40          return 'index.php?module=Profiles&parent=Settings&view=List';
  41      }
  42  
  43      /**
  44       * Function to get the url for create view of the module
  45       * @return <string> - url
  46       */
  47  	public function getCreateRecordUrl() {
  48          return 'index.php?module=Profiles&parent=Settings&view=Edit';
  49      }
  50  
  51      /**
  52       * Function to get non visible modules list
  53       * @return <Array> list of modules
  54       */
  55  	public static function getNonVisibleModulesList() {
  56          return array('ModTracker', 'Portal', 'Webmails', 'Users', 'Mobile', 'Integration', 'WSAPP', 'ConfigEditor',
  57                      'FieldFormulas', 'VtigerBackup', 'CronTasks', 'Import', 'Tooltip', 'CustomerPortal', 'Home');
  58      }
  59  }


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1