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


PHP CM_Params::getArray方法代碼示例

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


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

示例1: _execute

 protected function _execute(CM_Params $params)
 {
     $code = $params->getString('code');
     $identityList = $params->getArray('identityList');
     $eventName = $params->getString('eventName');
     $propertyList = $params->getArray('propertyList');
     $kissMetrics = new CMService_KissMetrics_Client($code);
     $kissMetrics->setIdentityList($identityList);
     $kissMetrics->trackEvent($eventName, $propertyList);
 }
開發者ID:cargomedia,項目名稱:cm,代碼行數:10,代碼來源:TrackEventJob.php

示例2: _execute

 protected function _execute(CM_Params $params)
 {
     $propertyId = $params->getString('propertyId');
     $parameterList = $params->getArray('parameterList');
     $client = new CMService_GoogleAnalytics_MeasurementProtocol_Client($propertyId);
     $client->_submitHit($parameterList);
 }
開發者ID:cargomedia,項目名稱:cm,代碼行數:7,代碼來源:SendHitJob.php

示例3: _execute

 protected function _execute(CM_Params $params)
 {
     $id = $params->getInt('id');
     $values = $params->getArray('values');
     $svm = new CM_SVM_Model($id);
     return $svm->predict($values);
 }
開發者ID:cargomedia,項目名稱:cm,代碼行數:7,代碼來源:PredictJob.php

示例4: _execute

 protected function _execute(CM_Params $params)
 {
     $id = $params->getInt('id');
     $class = $params->getInt('class');
     $values = $params->getArray('values');
     $svm = new CM_SVM_Model($id);
     $svm->addTraining($class, $values);
 }
開發者ID:cargomedia,項目名稱:cm,代碼行數:8,代碼來源:AddTrainingJob.php

示例5: ajax_validate

 public function ajax_validate(CM_Params $params, CM_Frontend_JavascriptContainer_View $handler, CM_Http_Response_View_Ajax $response)
 {
     $data = $params->getArray('data');
     $result = [];
     foreach ($data as $name => $userInput) {
         $field = $this->getField($name);
         $empty = $field->isEmpty($userInput);
         $value = null;
         $validationError = null;
         if (!$empty) {
             try {
                 $value = $field->validate($response->getEnvironment(), $userInput);
             } catch (CM_Exception_FormFieldValidation $e) {
                 $validationError = $e->getMessagePublic($response->getRender());
             }
         }
         $result[$name] = ['value' => $value, 'empty' => $empty, 'validationError' => $validationError];
     }
     return $result;
 }
開發者ID:cargomedia,項目名稱:cm,代碼行數:20,代碼來源:Example.php

示例6: ajax_getSuggestions

 public function ajax_getSuggestions(CM_Params $params, CM_Frontend_JavascriptContainer_View $handler, CM_Http_Response_View_Ajax $response)
 {
     return $this->_getSuggestions($params->getString('term'), $params->getArray('options'), $response->getRender());
 }
開發者ID:aladin1394,項目名稱:CM,代碼行數:4,代碼來源:Suggest.php


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