本文整理汇总了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);
}
示例2: save
public function save($args)
{
$db = Loader::db();
$args['showArrows'] = intval($args['showArrows']);
$args['loopSequence'] = intval($args['loopSequence']);
parent::save($args);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}