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


PHP BlockController::save方法代碼示例

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


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

示例1: save

 public function save($args)
 {
     $db = Loader::db();
     $args['showArrows'] = intval($args['showArrows']);
     $args['loopSequence'] = intval($args['loopSequence']);
     parent::save($args);
 }
開發者ID:ricardomccerqueira,項目名稱:rcerqueira.portfolio,代碼行數:7,代碼來源:next_previous.php

示例2: save

		function save($data) { 
			$args['fID']    = intval($data['fID']);	
			$args['width']  = (intval($data['width'])>0)  ? intval($data['width'])  : 425;
			$args['height'] = (intval($data['height'])>0) ? intval($data['height']) : 334;		
			
			parent::save($args);
		}				
開發者ID:rii-J,項目名稱:concrete5-de,代碼行數:7,代碼來源:controller.php

示例3: save

		public function save($args) {		
			$args['fOnstateID'] = ($args['fOnstateID'] != '') ? $args['fOnstateID'] : 0;
			$args['fID'] = ($args['fID'] != '') ? $args['fID'] : 0;
			$args['maxWidth'] = (intval($args['maxWidth']) > 0) ? intval($args['maxWidth']) : 0;
			$args['maxHeight'] = (intval($args['maxHeight']) > 0) ? intval($args['maxHeight']) : 0;
			parent::save($args);
		}
開發者ID:remkoj,項目名稱:concrete5,代碼行數:7,代碼來源:controller.php

示例4: save

		function save($data) { 
			$args['title'] = isset($data['title']) ? trim($data['title']) : '';
			$args['videoURL'] = isset($data['videoURL']) ? trim($data['videoURL']) : '';
			$args['vHeight'] = isset($data['vHeight']) ? trim($data['vHeight']) : '';
			$args['vWidth'] = isset($data['vWidth']) ? trim($data['vWidth']) : '';
			$args['vPlayer'] = ($data['vPlayer']==1) ? 1 : 0;
			parent::save($args);
		}
開發者ID:notzen,項目名稱:concrete5,代碼行數:8,代碼來源:controller.php

示例5: save

 public function save($args)
 {
     $args['field_2_image_fID'] = empty($args['field_2_image_fID']) ? 0 : $args['field_2_image_fID'];
     $args['field_3_image_fID'] = empty($args['field_3_image_fID']) ? 0 : $args['field_3_image_fID'];
     $args['field_4_image_fID'] = empty($args['field_4_image_fID']) ? 0 : $args['field_4_image_fID'];
     $args['field_5_image_fID'] = empty($args['field_5_image_fID']) ? 0 : $args['field_5_image_fID'];
     parent::save($args);
 }
開發者ID:robchenski,項目名稱:ids,代碼行數:8,代碼來源:controller.php

示例6: save

 function save($args)
 {
     $args['displayPagesIncludeSelf'] = $args['displayPagesIncludeSelf'] ? 1 : 0;
     $args['displayPagesCID'] = $args['displayPagesCID'] ? $args['displayPagesCID'] : 0;
     $args['displaySubPageLevelsNum'] = $args['displaySubPageLevelsNum'] > 0 ? $args['displaySubPageLevelsNum'] : 0;
     $args['displayUnavailablePages'] = $args['displayUnavailablePages'] ? 1 : 0;
     parent::save($args);
 }
開發者ID:Zyqsempai,項目名稱:amanet,代碼行數:8,代碼來源:autonav.php

示例7: save

 public function save($args)
 {
     $ak = $this->loadAttribute();
     $c = Page::getByID($_REQUEST['cID'], 'RECENT');
     $nvc = $c->getVersionToModify();
     $ak->saveAttributeForm($nvc);
     $nvc->refreshCache();
     parent::save($args);
 }
開發者ID:VonUniGE,項目名稱:concrete5-1,代碼行數:9,代碼來源:controller.php

示例8: save

 public function save($values)
 {
     $repository = array("title" => $values["title"], "user" => $values["user"]);
     $db = Loader::db();
     $db->query("DELETE FROM btGithubRepositories WHERE bID = ?", array(intval($this->bID)));
     $repos = $values["repos"];
     foreach ($repos as $key => $rp) {
         $db->query("INSERT INTO btGithubRepositories (bID, repos) VALUES (?, ?)", array($this->bID, $rp));
     }
     parent::save($repository);
 }
開發者ID:holyshared,項目名稱:developer-package,代碼行數:11,代碼來源:controller.php

示例9: save

		public function save($args) {		
			$args['fOnstateID'] = ($args['fOnstateID'] != '') ? $args['fOnstateID'] : 0;
			$args['fID'] = ($args['fID'] != '') ? $args['fID'] : 0;
			$args['maxWidth'] = (intval($args['maxWidth']) > 0) ? intval($args['maxWidth']) : 0;
			$args['maxHeight'] = (intval($args['maxHeight']) > 0) ? intval($args['maxHeight']) : 0;
			switch (intval($args['linkType'])) {
				case 1:
					$args['externalLink'] = '';
					break;
				case 2:
					$args['internalLinkCID'] = 0;
					break;
				default:
					$args['externalLink'] = '';
					$args['internalLinkCID'] = 0;
					break;
			}
			unset($args['linkType']); //this doesn't get saved to the database (it's only for UI usage)
			parent::save($args);
		}
開發者ID:nbourguig,項目名稱:concrete5,代碼行數:20,代碼來源:controller.php

示例10: save

 function save($args)
 {
     /* Flush any existing Timeline Components */
     $this->deleteExistingUserOrHashSettings();
     //if any exist, we remove them
     /* Flush the cache */
     $this->flushFullTimelineCache();
     /* Fix the checkbox fields */
     $args = $this->fixCheckboxFields($args);
     $userOrHash = empty($_POST['userOrHash']) ? array() : $_POST['userOrHash'];
     $userOrHashValues = empty($_POST['userOrHashValue']) ? array() : $_POST['userOrHashValue'];
     /*
      * Get the tokens and setup the default Timeline Component if user is
      * authenticating or reauthenticating a Twitter account.
      */
     if (isset($_POST['oAuthPIN'])) {
         $twitterObj = $this->getTwitterOAuthObject($_POST['oAuthRequestToken'], $_POST['oAuthRequestTokenSecret']);
         $access_token = $twitterObj->getAccessToken($_POST['oAuthPIN']);
         $args['oAuthToken'] = $access_token['oauth_token'];
         $args['oAuthTokenSecret'] = $access_token['oauth_token_secret'];
         $args['userName'] = $access_token['screen_name'];
         $args['userID'] = $access_token['user_id'];
         array_unshift($userOrHash, 1);
         array_unshift($userOrHashValues, $args['userName']);
     }
     if (!empty($userOrHash) && !empty($userOrHashValues)) {
         $userOrHashSettingsArray = array();
         /* Combine the two arrays eliminating any items where either array value is null */
         foreach ($userOrHash as $post_array_key => $post_array_value) {
             if (!empty($post_array_value) && !empty($userOrHashValues[$post_array_key])) {
                 array_push($userOrHashSettingsArray, array($post_array_value => $userOrHashValues[$post_array_key]));
             }
         }
         $this->saveUserOrHashSettingsArray($userOrHashSettingsArray);
     }
     parent::save($args);
 }
開發者ID:robchenski,項目名稱:ids,代碼行數:37,代碼來源:controller.php

示例11: save

 function save($data)
 {
     $args['title'] = isset($data['title']) ? $data['title'] : '';
     $args['buttonText'] = isset($data['buttonText']) ? $data['buttonText'] : '';
     $args['baseSearchPath'] = isset($data['baseSearchPath']) ? $data['baseSearchPath'] : '';
     if ($args['baseSearchPath'] == 'OTHER' && intval($data['searchUnderCID']) > 0) {
         $customPathC = Page::getByID(intval($data['searchUnderCID']));
         if (!$customPathC) {
             $args['baseSearchPath'] = '';
         } else {
             $args['baseSearchPath'] = $customPathC->getCollectionPath();
         }
     }
     if (trim($args['baseSearchPath']) == '/' || strlen(trim($args['baseSearchPath'])) == 0) {
         $args['baseSearchPath'] = '';
     }
     if (intval($data['postTo_cID']) > 0) {
         $args['postTo_cID'] = intval($data['postTo_cID']);
     } else {
         $args['postTo_cID'] = '';
     }
     $args['resultsURL'] = $data['externalTarget'] == 1 && strlen($data['resultsURL']) > 0 ? trim($data['resultsURL']) : '';
     parent::save($args);
 }
開發者ID:ojalehto,項目名稱:concrete5-legacy,代碼行數:24,代碼來源:search.php

示例12: save

 function save($args)
 {
     // If we've gotten to the process() function for this class, we assume that we're in
     // the clear, as far as permissions are concerned (since we check permissions at several
     // points within the dispatcher)
     $db = Loader::db();
     $bID = $this->bID;
     $c = $this->getCollectionObject();
     if (is_object($c)) {
         $this->cID = $c->getCollectionID();
     }
     $args['num'] = $args['num'] > 0 ? $args['num'] : 0;
     $args['cThis'] = $args['cParentID'] == $this->cID ? '1' : '0';
     $args['cParentID'] = $args['cParentID'] == 'OTHER' ? $args['cParentIDValue'] : $args['cParentID'];
     $args['truncateSummaries'] = $args['truncateSummaries'] ? '1' : '0';
     $args['truncateTitles'] = $args['truncateTitles'] ? '1' : '0';
     $args['displayFeaturedOnly'] = $args['displayFeaturedOnly'] ? '1' : '0';
     $args['truncateChars'] = intval($args['truncateChars']);
     $args['truncateTitleChars'] = intval($args['truncateTitleChars']);
     $args['showDescriptions'] = $args['showDescriptions'] ? '1' : '0';
     parent::save($args);
 }
開發者ID:ricardomccerqueira,項目名稱:rcerqueira.portfolio,代碼行數:22,代碼來源:date_nav.php

示例13: save

 public function save($data)
 {
     $data['largeWidth'] = intval($data['largeWidth']);
     $data['largeHeight'] = intval($data['largeHeight']);
     $data['thumbWidth'] = intval($data['thumbWidth']);
     $data['thumbHeight'] = intval($data['thumbHeight']);
     $data['cropLarge'] = intval($data['cropLarge']) < 1 ? 0 : 1;
     //Watch out for the "-1" option
     parent::save($data);
 }
開發者ID:robchenski,項目名稱:ids,代碼行數:10,代碼來源:controller.php

示例14: save

 function save($data)
 {
     $content = $this->translateTo($data['content']);
     $args['content'] = $content;
     parent::save($args);
 }
開發者ID:ricardomccerqueira,項目名稱:rcerqueira.portfolio,代碼行數:6,代碼來源:content.php

示例15: save

 function save($args)
 {
     $args['content'] = Loader::helper('content')->translateTo($args['content']);
     parent::save($args);
 }
開發者ID:ojalehto,項目名稱:concrete5-legacy,代碼行數:5,代碼來源:content.php


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