當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CRM_Core_Session::set方法代碼示例

本文整理匯總了PHP中CRM_Core_Session::set方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Core_Session::set方法的具體用法?PHP CRM_Core_Session::set怎麽用?PHP CRM_Core_Session::set使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CRM_Core_Session的用法示例。


在下文中一共展示了CRM_Core_Session::set方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: set

 /**
  * Store parser values.
  *
  * @param CRM_Core_Session $store
  *
  * @param int $mode
  *
  * @return void
  */
 public function set($store, $mode = self::MODE_SUMMARY)
 {
     $store->set('fileSize', $this->_fileSize);
     $store->set('lineCount', $this->_lineCount);
     $store->set('seperator', $this->_seperator);
     $store->set('fields', $this->getSelectValues());
     $store->set('fieldTypes', $this->getSelectTypes());
     $store->set('headerPatterns', $this->getHeaderPatterns());
     $store->set('dataPatterns', $this->getDataPatterns());
     $store->set('columnCount', $this->_activeFieldCount);
     $store->set('totalRowCount', $this->_totalCount);
     $store->set('validRowCount', $this->_validCount);
     $store->set('invalidRowCount', $this->_invalidRowCount);
     $store->set('conflictRowCount', $this->_conflictCount);
     switch ($this->_contactType) {
         case 'Individual':
             $store->set('contactType', CRM_Import_Parser::CONTACT_INDIVIDUAL);
             break;
         case 'Household':
             $store->set('contactType', CRM_Import_Parser::CONTACT_HOUSEHOLD);
             break;
         case 'Organization':
             $store->set('contactType', CRM_Import_Parser::CONTACT_ORGANIZATION);
     }
     if ($this->_invalidRowCount) {
         $store->set('errorsFileName', $this->_errorFileName);
     }
     if ($this->_conflictCount) {
         $store->set('conflictsFileName', $this->_conflictFileName);
     }
     if (isset($this->_rows) && !empty($this->_rows)) {
         $store->set('dataValues', $this->_rows);
     }
     if ($mode == self::MODE_IMPORT) {
         $store->set('duplicateRowCount', $this->_duplicateCount);
         if ($this->_duplicateCount) {
             $store->set('duplicatesFileName', $this->_duplicateFileName);
         }
     }
 }
開發者ID:kidaa30,項目名稱:yes,代碼行數:49,代碼來源:Parser.php

示例2: set

 /**
  * Store the variable with the value in the form scope
  *
  * @param  string|array $name  name  of the variable or an assoc array of name/value pairs
  * @param  mixed        $value value of the variable if string
  *
  * @access public
  *
  * @return void
  *
  */
 function set($name, $value = NULL)
 {
     self::$_session->set($name, $value, $this->_scope);
 }
開發者ID:hguru,項目名稱:224Civi,代碼行數:15,代碼來源:Controller.php

示例3: set

 /**
  * Store parser values.
  *
  * @param CRM_Core_Session $store
  *
  * @param int $mode
  */
 public function set($store, $mode = self::MODE_SUMMARY)
 {
     $store->set('fileSize', $this->_fileSize);
     $store->set('lineCount', $this->_lineCount);
     $store->set('seperator', $this->_seperator);
     $store->set('fields', $this->getSelectValues());
     $store->set('fieldTypes', $this->getSelectTypes());
     $store->set('headerPatterns', $this->getHeaderPatterns());
     $store->set('dataPatterns', $this->getDataPatterns());
     $store->set('columnCount', $this->_activeFieldCount);
     $store->set('totalRowCount', $this->_totalCount);
     $store->set('validRowCount', $this->_validCount);
     $store->set('invalidRowCount', $this->_invalidRowCount);
     $store->set('conflictRowCount', $this->_conflictCount);
     if ($this->_invalidRowCount) {
         $store->set('errorsFileName', $this->_errorFileName);
     }
     if ($this->_conflictCount) {
         $store->set('conflictsFileName', $this->_conflictFileName);
     }
     if (isset($this->_rows) && !empty($this->_rows)) {
         $store->set('dataValues', $this->_rows);
     }
     if ($mode == self::MODE_IMPORT) {
         $store->set('duplicateRowCount', $this->_duplicateCount);
         if ($this->_duplicateCount) {
             $store->set('duplicatesFileName', $this->_duplicateFileName);
         }
     }
 }
開發者ID:nielosz,項目名稱:civicrm-core,代碼行數:37,代碼來源:Parser.php

示例4: set

 /**
  * Store the variable with the value in the form scope.
  *
  * @param string|array $name name of the variable or an assoc array of name/value pairs
  * @param mixed $value
  *   Value of the variable if string.
  *
  *
  * @return void
  */
 public function set($name, $value = NULL)
 {
     self::$_session->set($name, $value, $this->_name);
 }
開發者ID:utkarshsharma,項目名稱:civicrm-core,代碼行數:14,代碼來源:Page.php

示例5: set

 /**
  * Store the variable with the value in the form scope
  *
  * @param  string|array $name  name  of the variable or an assoc array of name/value pairs
  * @param  mixed        $value value of the variable if string
  *
  * @access public
  * @return void
  *
  */
 function set($name, $value = null)
 {
     self::$_session->set($name, $value, $this->_name);
 }
開發者ID:ksecor,項目名稱:civicrm,代碼行數:14,代碼來源:Page.php

示例6: set

 /**
  * Store parser values
  *
  * @param CRM_Core_Session $store
  *
  * @return void
  * @access public
  */
 function set($store, $mode = self::MODE_SUMMARY)
 {
     $store->set('rowCount', $this->_rowCount);
     $store->set('fields', $this->getSelectValues());
     $store->set('fieldTypes', $this->getSelectTypes());
     $store->set('columnPatterns', $this->getColumnPatterns());
     $store->set('dataPatterns', $this->getDataPatterns());
     $store->set('columnCount', $this->_activeFieldCount);
     $store->set('totalRowCount', $this->_totalCount);
     $store->set('validRowCount', $this->_validCount);
     $store->set('invalidRowCount', $this->_invalidRowCount);
     $store->set('conflictRowCount', $this->_conflictCount);
     $store->set('unMatchCount', $this->_unMatchCount);
     switch ($this->_contactType) {
         case 'Individual':
             $store->set('contactType', CRM_Import_Parser::CONTACT_INDIVIDUAL);
             break;
         case 'Household':
             $store->set('contactType', CRM_Import_Parser::CONTACT_HOUSEHOLD);
             break;
         case 'Organization':
             $store->set('contactType', CRM_Import_Parser::CONTACT_ORGANIZATION);
     }
     if ($this->_invalidRowCount) {
         $store->set('errorsFileName', $this->_errorFileName);
     }
     if ($this->_conflictCount) {
         $store->set('conflictsFileName', $this->_conflictFileName);
     }
     if (isset($this->_rows) && !empty($this->_rows)) {
         $store->set('dataValues', $this->_rows);
     }
     if ($this->_unMatchCount) {
         $store->set('mismatchFileName', $this->_misMatchFilemName);
     }
     if ($mode == self::MODE_IMPORT) {
         $store->set('duplicateRowCount', $this->_duplicateCount);
         $store->set('unparsedAddressCount', $this->_unparsedAddressCount);
         if ($this->_duplicateCount) {
             $store->set('duplicatesFileName', $this->_duplicateFileName);
         }
         if ($this->_unparsedAddressCount) {
             $store->set('errorsFileName', $this->_errorFileName);
         }
     }
     //echo "$this->_totalCount,$this->_invalidRowCount,$this->_conflictCount,$this->_duplicateCount";
 }
開發者ID:hguru,項目名稱:224Civi,代碼行數:55,代碼來源:Parser.php


注:本文中的CRM_Core_Session::set方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。