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


PHP caEscapeForBundlePreview函数代码示例

本文整理汇总了PHP中caEscapeForBundlePreview函数的典型用法代码示例。如果您正苦于以下问题:PHP caEscapeForBundlePreview函数的具体用法?PHP caEscapeForBundlePreview怎么用?PHP caEscapeForBundlePreview使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: caNavUrl

?>
,
			autocompleteUrl: '<?php 
print caNavUrl($this->request, 'lookup', 'Place', 'Get', $va_lookup_params);
?>
',
			types: <?php 
print json_encode($va_settings['restrict_to_types']);
?>
,
			restrictToSearch: <?php 
print json_encode($va_settings['restrict_to_search']);
?>
,
			bundlePreview: <?php 
print sizeof($this->getVar('initialValues')) < 50 ? caEscapeForBundlePreview($t_instance->get($t_item->tableName(), array('delimiter' => '; ', 'restrict_to_types' => $va_settings['restrict_to_types'], 'restrict_to_relationship_types' => $va_settings['restrict_to_relationship_types'], 'template' => $va_settings['display_template']))) : "''";
?>
,
			readonly: <?php 
print $vb_read_only ? "true" : "false";
?>
,
			isSortable: <?php 
print $vb_read_only || $vs_sort ? "false" : "true";
?>
,
			listSortOrderID: '<?php 
print $vs_id_prefix;
?>
BundleList',
			listSortItems: 'div.roundedRel',
开发者ID:kai-iak,项目名称:providence,代码行数:31,代码来源:ca_places.php

示例2: json_encode

',
		templateValues: ['name', 'locale_id', 'type_id'],
		forceNewValues: <?php 
print json_encode($va_force_new_labels);
?>
,
		initialValues: <?php 
print json_encode($va_initial_values);
?>
,
		labelID: 'Label_',
		localeClassName: 'labelLocale',
		templateClassName: 'caLabelTemplate',
		labelListClassName: 'caLabelList',
		addButtonClassName: 'caAddLabelButton',
		deleteButtonClassName: 'caDeleteLabelButton',
		readonly: <?php 
print $vb_read_only ? "1" : "0";
?>
,
		bundlePreview: <?php 
$va_cur = current($va_initial_values);
print caEscapeForBundlePreview($va_cur['name']);
?>
,
		defaultLocaleID: <?php 
print ca_locales::getDefaultCataloguingLocaleID();
?>
	});
</script>
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ca_tour_labels_preferred.php

示例3: caGetBundlePreviewForRelationshipBundle

/**
 * Get bundle preview for a relationship bundle
 * @param BundlableLabelableBaseModelWithAttributes $t_rel_instance
 * @param array $pa_initial_values
 * @param string $ps_template
 * @param string $ps_delimiter
 * @return string
 */
function caGetBundlePreviewForRelationshipBundle($t_rel_instance, $pa_initial_values, $ps_template, $ps_delimiter = '; ')
{
    if (!is_array($pa_initial_values) || sizeof($pa_initial_values) == 0) {
        return '""';
    }
    // it's very unlikely that the preview will fit more then 10 items
    if (sizeof($pa_initial_values) > 10) {
        $pa_initial_values = array_slice($pa_initial_values, 0, 10);
    }
    if (!$t_rel_instance instanceof BundlableLabelableBaseModelWithAttributes) {
        return '""';
    }
    $va_ids = $va_previews = array();
    foreach ($pa_initial_values as $va_item) {
        $va_ids[] = $va_item['id'];
    }
    $o_res = $t_rel_instance->makeSearchResult($t_rel_instance->tableName(), $va_ids);
    while ($o_res->nextHit()) {
        $va_previews[] = $o_res->getWithTemplate($ps_template);
    }
    return caEscapeForBundlePreview(join($ps_delimiter, $va_previews));
}
开发者ID:ymani2435,项目名称:providence,代码行数:30,代码来源:displayHelpers.php

示例4: json_encode

',
		templateValues: ['displayname', 'prefix', 'forename', 'other_forenames', 'middlename', 'surname', 'suffix', 'locale_id', 'type_id'],
		initialValues: <?php 
print json_encode($va_initial_values);
?>
,
		forceNewValues: <?php 
print json_encode($va_force_new_labels);
?>
,
		labelID: 'Label_',
		localeClassName: 'labelLocale',
		templateClassName: 'caLabelTemplate',
		labelListClassName: 'caLabelList',
		addButtonClassName: 'caAddLabelButton',
		deleteButtonClassName: 'caDeleteLabelButton',
		bundlePreview: <?php 
$va_cur = current($va_initial_values);
print caEscapeForBundlePreview($va_cur['displayname']);
?>
,
		readonly: <?php 
print $vb_read_only ? "1" : "0";
?>
,
		defaultLocaleID: <?php 
print ca_locales::getDefaultCataloguingLocaleID();
?>
	});
</script>
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ca_entity_labels_preferred.php

示例5: json_encode

    print $vs_id_prefix;
    ?>
_download_control_', '<?php 
    print $vs_id_prefix;
    ?>
_print_control_',],
		showOnNewIDList: ['<?php 
    print $vs_id_prefix;
    ?>
_upload_control_'],
		defaultValues: <?php 
    print json_encode($va_element_value_defaults);
    ?>
,
		bundlePreview: <?php 
    print caEscapeForBundlePreview($vs_bundle_preview);
    ?>
,
		readonly: <?php 
    print $vb_read_only ? "1" : "0";
    ?>
,
		defaultLocaleID: <?php 
    print ca_locales::getDefaultCataloguingLocaleID();
}
?>
	});
	
	function <?php 
print $vs_id_prefix;
?>
开发者ID:kai-iak,项目名称:providence,代码行数:31,代码来源:ca_attributes.php

示例6: json_encode

',
		templateValues: ['caption', 'locale_id', 'type_id'],
		initialValues: <?php 
print json_encode($va_initial_values);
?>
,
		forceNewValues: <?php 
print json_encode($va_force_new_labels);
?>
,
		labelID: 'Label_',
		localeClassName: 'labelLocale',
		templateClassName: 'caLabelTemplate',
		labelListClassName: 'caLabelList',
		addButtonClassName: 'caAddLabelButton',
		deleteButtonClassName: 'caDeleteLabelButton',
		bundlePreview: <?php 
$va_cur = current($va_initial_values);
print caEscapeForBundlePreview($va_cur['caption']);
?>
,
		readonly: <?php 
print $vb_read_only ? "1" : "0";
?>
,
		defaultLocaleID: <?php 
print ca_locales::getDefaultCataloguingLocaleID();
?>
	});
</script>
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ca_set_item_labels_nonpreferred.php

示例7: json_encode

',
		templateValues: ['name_singular', 'name_plural', 'description', 'locale_id', 'type_id'],
		initialValues: <?php 
print json_encode($va_initial_values);
?>
,
		forceNewValues: <?php 
print json_encode($va_force_new_labels);
?>
,
		labelID: 'Label_',
		localeClassName: 'labelLocale',
		templateClassName: 'caLabelTemplate',
		labelListClassName: 'caLabelList',
		addButtonClassName: 'caAddLabelButton',
		deleteButtonClassName: 'caDeleteLabelButton',
		bundlePreview: <?php 
$va_cur = current($va_initial_values);
print caEscapeForBundlePreview($va_cur['name_plural']);
?>
,
		readonly: <?php 
print $vb_read_only ? "1" : "0";
?>
,
		defaultLocaleID: <?php 
print ca_locales::getDefaultCataloguingLocaleID();
?>
	});
</script>
开发者ID:idiscussforum,项目名称:providence,代码行数:30,代码来源:ca_list_item_labels_preferred.php


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