当前位置: 首页>>代码示例>>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;未经允许,请勿转载。