Example #1
0
 /**
  * Function to get the list view header
  * @return <Array> - List of Vtiger_Field_Model instances
  */
 public function getListViewHeaders()
 {
     $field = new Vtiger_Base_Model();
     $field->set('name', 'sourceLabel');
     $field->set('label', 'Module');
     $field->set('sort', false);
     $field1 = new Vtiger_Base_Model();
     $field1->set('name', 'sourcefieldlabel');
     $field1->set('label', 'LBL_SOURCE_FIELD');
     $field1->set('sort', false);
     $field2 = new Vtiger_Base_Model();
     $field2->set('name', 'targetfieldlabel');
     $field2->set('label', 'LBL_TARGET_FIELD');
     $field2->set('sort', false);
     return array($field, $field1, $field2);
 }
Example #2
0
 public function __construct($values)
 {
     ${"GLOBALS"}["erncnbjbd"] = "values";
     if (!empty(${${"GLOBALS"}["sqbipih"]}["backgroundFile"])) {
         ${"GLOBALS"}["donutf"] = "values";
         unset(${${"GLOBALS"}["donutf"]}["background"]);
     }
     parent::__construct(${${"GLOBALS"}["erncnbjbd"]});
 }
Example #3
0
	public function __construct() {
		parent::__construct();
		$this->EXTENSIONSTORE_LOOKUP_URL = 'https://marketplace.vtiger.com/api';
		global $site_URL;
		if (empty($site_URL)) {
            throw new Exception('Invalid configuration.');
        }
        $this->siteURL = $site_URL;
	}
 public function __construct($values = array())
 {
     parent::__construct($values);
     $this->unMarkDeleted();
 }
Example #5
0
 /**
  * Function to get the Announcement
  * @return Vtiger_Base_Model - Announcement
  */
 function getAnnouncement()
 {
     global $log;
     //$announcement = Vtiger_Cache::get('announcement', 'value');
     $model = new Vtiger_Base_Model();
     //if(!$announcement) {
     $announcement = get_announcements();
     //Vtiger_Cache::set('announcement', 'value', $announcement);
     //}
     return $model->set('announcement', $announcement);
 }
Example #6
0
 public static function getImportDetails($user)
 {
     $adb = PearDatabase::getInstance();
     $tableName = Import_Utils_Helper::getDbTableName($user);
     $result = $adb->pquery("SELECT * FROM {$tableName} where status IN (?,?)", array(self::$IMPORT_RECORD_SKIPPED, self::$IMPORT_RECORD_FAILED));
     $importRecords = array();
     if ($result) {
         $headers = $adb->getColumnNames($tableName);
         $numOfHeaders = count($headers);
         for ($i = 0; $i < 10; $i++) {
             if ($i >= 3 && $i < $numOfHeaders) {
                 $importRecords['headers'][] = $headers[$i];
             }
         }
         $noOfRows = $adb->num_rows($result);
         for ($i = 0; $i < $noOfRows; ++$i) {
             $row = $adb->fetchByAssoc($result, $i);
             $record = new Vtiger_Base_Model();
             foreach ($importRecords['headers'] as $header) {
                 $record->set($header, $row[$header]);
             }
             if ($row['status'] == self::$IMPORT_RECORD_SKIPPED) {
                 $importRecords['skipped'][] = $record;
             } else {
                 $importRecords['failed'][] = $record;
             }
         }
         return $importRecords;
     }
 }
Example #7
0
 public function getRaw($key)
 {
     return parent::get($key);
 }
Example #8
0
 public function __construct($values = [])
 {
     parent::__construct($values);
 }