当前位置: 首页>>代码示例>>PHP>>正文


PHP BlockController::save方法代码示例

本文整理汇总了PHP中Concrete\Core\Block\BlockController::save方法的典型用法代码示例。如果您正苦于以下问题:PHP BlockController::save方法的具体用法?PHP BlockController::save怎么用?PHP BlockController::save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Concrete\Core\Block\BlockController的用法示例。


在下文中一共展示了BlockController::save方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: save

 public function save($args)
 {
     $args['mautic_base_url'] = isset($args['mautic_base_url']) ? $args['mautic_base_url'] : '';
     // Sanitize URL
     $args['mautic_base_url'] = trim($args['mautic_base_url'], ' \\t\\n\\r\\0\\x0B/');
     parent::save($args);
 }
开发者ID:hissy,项目名称:mautic-concrete5,代码行数:7,代码来源:controller.php

示例2: save

 public function save($args)
 {
     $db = Loader::db();
     $args['showArrows'] = intval($args['showArrows']);
     $args['loopSequence'] = intval($args['loopSequence']);
     parent::save($args);
 }
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:7,代码来源:controller.php

示例3: save

 public function save($args)
 {
     $args += array('showArrows' => 0, 'loopSequence' => 0);
     $args['showArrows'] = intval($args['showArrows']);
     $args['loopSequence'] = intval($args['loopSequence']);
     parent::save($args);
 }
开发者ID:ceko,项目名称:concrete5-1,代码行数:7,代码来源:controller.php

示例4: save

 public function save($data)
 {
     $args['content'] = isset($data['content']) ? $data['content'] : '';
     $args['language'] = isset($data['language']) ? $data['language'] : '';
     $args['theme'] = isset($data['theme']) ? $data['theme'] : '';
     parent::save($args);
 }
开发者ID:hissy,项目名称:addon_code_snippet,代码行数:7,代码来源:controller.php

示例5: save

 public function save($args)
 {
     $args['enableFullWidth'] = isset($args['enableFullWidth']) ? 1 : 0;
     $args['enableClear'] = isset($args['enableClear']) ? 1 : 0;
     $args['enableSticky'] = isset($args['enableSticky']) ? 1 : 0;
     parent::save($args);
 }
开发者ID:baardev,项目名称:lbtb,代码行数:7,代码来源:controller.php

示例6: save

 public function save($args)
 {
     $args['do_crop'] = $args['do_crop'] ? true : false;
     // Due to a bug in the core, we can't save null values yet...
     $args['max_width'] = !empty($args['max_width']) ? $args['max_width'] : 0;
     $args['max_height'] = !empty($args['max_height']) ? $args['max_height'] : 0;
     parent::save($args);
 }
开发者ID:Remo,项目名称:d3_random_image,代码行数:8,代码来源:controller.php

示例7: save

 public function save($args)
 {
     if ($args['table_data'] == '[[null],[null]]' || $args['table_data'] == '[[null]]') {
         $args['table_data'] = '';
         $args['table_metadata'] = '';
     }
     parent::save($args);
 }
开发者ID:mesuva,项目名称:msv_table,代码行数:8,代码来源:controller.php

示例8: save

 public function save($args)
 {
     $args['showCartItems'] = isset($args['showCartItems']) ? 1 : 0;
     $args['showCartTotal'] = isset($args['showCartTotal']) ? 1 : 0;
     $args['showSignIn'] = isset($args['showSignIn']) ? 1 : 0;
     $args['showCheckout'] = isset($args['showCheckout']) ? 1 : 0;
     $args['showGreeting'] = isset($args['showGreeting']) ? 1 : 0;
     parent::save($args);
 }
开发者ID:pvernaglia,项目名称:vivid_store,代码行数:9,代码来源:controller.php

示例9: save

 public function save($data)
 {
     if (isset($data['host'])) {
         $url = Url::createFromUrl($data['host']);
         $host = $url->getHost();
         $data['host'] = (string) $host;
     }
     parent::save($data);
 }
开发者ID:hissy,项目名称:addon_disqus,代码行数:9,代码来源:controller.php

示例10: save

 public function save($args)
 {
     $args['mautic_base_url'] = isset($args['mautic_base_url']) ? $args['mautic_base_url'] : '';
     // Sanitize URL
     $args['mautic_base_url'] = trim($args['mautic_base_url']);
     $args['mautic_base_url'] = rtrim($args['mautic_base_url'], '/');
     $args['mautic_base_url'] = ltrim($args['mautic_base_url'], 'https:');
     parent::save($args);
 }
开发者ID:buckhornmktg,项目名称:mautic-concrete5,代码行数:9,代码来源:controller.php

示例11: save

 public function save($data)
 {
     $data['useCustomTitle'] = isset($data['useCustomTitle']) && $data['useCustomTitle'] ? 1 : 0;
     $data['useFilterTitle'] = isset($data['useFilterTitle']) && $data['useFilterTitle'] ? 1 : 0;
     $data['useFilterTopic'] = isset($data['useFilterTopic']) && $data['useFilterTopic'] ? 1 : 0;
     $data['useFilterTag'] = isset($data['useFilterTag']) && $data['useFilterTag'] ? 1 : 0;
     $data['useFilterDate'] = isset($data['useFilterDate']) && $data['useFilterDate'] ? 1 : 0;
     parent::save($data);
 }
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:9,代码来源:controller.php

示例12: save

 public function save($args)
 {
     $args['showQuickViewLink'] = isset($args['showQuickViewLink']) ? 1 : 0;
     $args['showPageLink'] = isset($args['showPageLink']) ? 1 : 0;
     $args['showAddToCart'] = isset($args['showAddToCart']) ? 1 : 0;
     $args['showLink'] = isset($args['showLink']) ? 1 : 0;
     $args['showButton'] = isset($args['showButton']) ? 1 : 0;
     $args['truncateEnabled'] = isset($args['truncateEnabled']) ? 1 : 0;
     $args['showPagination'] = isset($args['showPagination']) ? 1 : 0;
     parent::save($args);
 }
开发者ID:Rgeelen,项目名称:vivid_store,代码行数:11,代码来源:controller.php

示例13: save

 public function save($data)
 {
     $args['title'] = isset($data['title']) ? trim($data['title']) : '';
     $args['location'] = isset($data['location']) ? trim($data['location']) : '';
     $args['zoom'] = intval($data['zoom']) >= 0 && intval($data['zoom']) <= 21 ? intval($data['zoom']) : 14;
     $args['latitude'] = is_numeric($data['latitude']) ? $data['latitude'] : 0;
     $args['longitude'] = is_numeric($data['longitude']) ? $data['longitude'] : 0;
     $args['width'] = $data['width'];
     $args['height'] = $data['height'];
     $args['scrollwheel'] = $data['scrollwheel'] ? 1 : 0;
     parent::save($args);
 }
开发者ID:ngreimel,项目名称:kovent,代码行数:12,代码来源:controller.php

示例14: save

 function save($args)
 {
     $args['numberFiles'] = $args['numberFiles'] > 0 ? $args['numberFiles'] : 0;
     $args['displaySetTitle'] = $args['displaySetTitle'] ? '1' : '0';
     $args['replaceUnderscores'] = $args['replaceUnderscores'] ? '1' : '0';
     $args['displaySize'] = $args['displaySize'] ? '1' : '0';
     $args['displayDateAdded'] = $args['displayDateAdded'] ? '1' : '0';
     $args['uppercaseFirst'] = $args['uppercaseFirst'] ? '1' : '0';
     $args['paginate'] = $args['paginate'] ? '1' : '0';
     $args['forceDownload'] = $args['forceDownload'] ? '1' : '0';
     parent::save($args);
 }
开发者ID:kohki-shikata,项目名称:list_files_from_set,代码行数:12,代码来源:controller.php

示例15: save

 public function save($args)
 {
     // convert to int
     $args['sectorId'] = intval($args['sectorId']);
     // convert to string
     if (is_array($args['types'])) {
         $args['types'] = implode(',', $args['types']);
     } else {
         $args['types'] = '';
     }
     parent::save($args);
 }
开发者ID:worldskills,项目名称:concrete5-worldskills,代码行数:12,代码来源:controller.php


注:本文中的Concrete\Core\Block\BlockController::save方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。