本文整理汇总了PHP中caEditorBundleMetadataDictionary函数的典型用法代码示例。如果您正苦于以下问题:PHP caEditorBundleMetadataDictionary函数的具体用法?PHP caEditorBundleMetadataDictionary怎么用?PHP caEditorBundleMetadataDictionary使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caEditorBundleMetadataDictionary函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$vs_sort = isset($va_settings['sort']) && $va_settings['sort'] ? $va_settings['sort'] : '';
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'] || $this->request->user->getBundleAccessLevel($t_instance->tableName(), 'ca_list_items') == __CA_BUNDLE_ACCESS_READONLY__;
$vb_dont_show_del = isset($va_settings['dontShowDeleteButton']) && $va_settings['dontShowDeleteButton'] ? true : false;
$vs_color = isset($va_settings['colorItem']) && $va_settings['colorItem'] ? $va_settings['colorItem'] : '';
$vs_first_color = isset($va_settings['colorFirstItem']) && $va_settings['colorFirstItem'] ? $va_settings['colorFirstItem'] : '';
$vs_last_color = isset($va_settings['colorLastItem']) && $va_settings['colorLastItem'] ? $va_settings['colorLastItem'] : '';
$va_initial_values = $this->getVar('initialValues');
$vn_browse_last_id = (int) $this->request->session->getVar('ca_list_items_' . $vs_id_prefix . '_browse_last_id');
// params to pass during occurrence lookup
$va_lookup_params = array('type' => isset($va_settings['restrict_to_type']) ? $va_settings['restrict_to_type'] : '', 'noSubtypes' => (int) $va_settings['dont_include_subtypes_in_type_restriction']);
if ($vb_batch) {
print caBatchEditorRelationshipModeControl($t_item, $vs_id_prefix);
} else {
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $t_item->tableNum() . '_rel', $va_settings, caInitialValuesArrayHasValue($vs_id_prefix . $t_item->tableNum() . '_rel', $this->getVar('initialValues')));
}
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . $t_item->tableNum() . '_rel', $va_settings);
if (sizeof($this->getVar('initialValues')) && !$vb_read_only && !$vs_sort && $va_settings['list_format'] != 'list') {
print caEditorBundleSortControls($this->request, $vs_id_prefix, $pa_settings);
}
$va_errors = array();
foreach ($va_action_errors = $this->request->getActionErrors($vs_placement_code) as $o_error) {
$va_errors[] = $o_error->getErrorDescription();
}
?>
<div id="<?php
print $vs_id_prefix . $t_item->tableNum() . '_rel';
?>
" <?php
print $vb_batch ? "class='editorBatchBundleContent'" : '';
?>
>
示例2: array
$t_label = $this->getVar('t_label');
$va_initial_values = $this->getVar('label_initial_values');
if (!($va_force_new_labels = $this->getVar('new_labels'))) {
$va_force_new_labels = array();
}
// list of new labels not saved due to error which we need to for onto the label list as new
$va_settings = $this->getVar('settings');
$vs_add_label = $this->getVar('add_label');
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'] || $this->request->user->getBundleAccessLevel('ca_tours', 'preferred_labels') == __CA_BUNDLE_ACCESS_READONLY__;
$vb_batch = $this->getVar('batch');
if ($vb_batch) {
print caBatchEditorPreferredLabelsModeControl($t_label, $vs_id_prefix);
} else {
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'Labels', $va_settings, caInitialValuesArrayHasValue($vs_id_prefix . 'Labels', $va_initial_values));
}
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . 'Labels', $va_settings);
?>
<div id="<?php
print $vs_id_prefix;
?>
Labels" <?php
print $vb_batch ? "class='editorBatchBundleContent'" : '';
?>
>
<?php
//
// The bundle template - used to generate each bundle in the form
//
?>
<textarea class='caLabelTemplate' style='display: none;'>
<div id="{fieldNamePrefix}Label_{n}" class="labelInfo">
示例3: foreach
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$t_screen = $this->getVar('t_screen');
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_available_display_items = $t_screen->getAvailableBundles();
foreach ($va_available_display_items as $vs_bundle => $va_item) {
unset($va_available_display_items[$vs_bundle]['settings']);
// strip lists of valid settings - we don't need to send them to the client and they can be fairly large
}
$va_to_display_items = $t_screen->getPlacementsInScreen(array('noCache' => true));
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . 'UIEditorBundlePlacements');
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . 'UIEditorBundlePlacements', $va_settings);
?>
<div class="bundleDisplayPlacementEditorContainer" id="<?php
print $vs_id_prefix;
?>
UIEditorBundlePlacements">
<div id="bundleDisplayPlacementEditor" class="bundleDisplayPlacementEditor">
<div class="bundleDisplayPlacementEditorHelpText"><?php
print _t("Drag your selection from column to column to edit the contents of the screen.");
?>
</div>
<table>
<tr valign="top">
<td>
<div><?php
print _t("Available editor elements");
示例4: in_array
* GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
* the "license.txt" file for details, or visit the CollectiveAccess web site at
* http://www.CollectiveAccess.org
*
* ----------------------------------------------------------------------
*/
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$vn_table_num = $this->getVar('table_num');
$t_subject = $this->getVar('t_subject');
$va_settings = $this->getVar('settings');
$vs_order_type = in_array($va_settings['orderType'][0], array('O', 'L')) ? $va_settings['orderType'][0] : 'O';
$vb_read_only = isset($va_settings['readonly']) && $va_settings['readonly'];
$va_errors = array();
$va_orders = $t_subject->getClientHistory($vs_order_type);
print caEditorBundleShowHideControl($this->request, $vs_id_prefix . $vn_table_num . 'OrderHistory');
print caEditorBundleMetadataDictionary($this->request, $vs_id_prefix . $vn_table_num . 'OrderHistory', $va_settings);
?>
<div id="<?php
print $vs_id_prefix . $vn_table_num . 'OrderHistory';
?>
">
<div class="bundleContainer">
<?php
if ($vs_order_type == 'L') {
// Loan
if (sizeof($va_orders) == 0) {
?>
<h2><?php
print _t('No loans have been made');
?>
</h2>
示例5: caEditorBundleShowHideControl
print caEditorBundleShowHideControl($this->request, $vs_id_prefix, $va_settings, caInitialValuesArrayHasValue($vs_id_prefix, $vs_bundle_preview));
?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#' + '<?php
print $vs_id_prefix;
?>
' + '_BundleContentPreview').text(<?php
print caEscapeForBundlePreview($vs_bundle_preview);
?>
);
});
</script>
<?php
}
print caEditorBundleMetadataDictionary($this->request, "intrinsic_{$vs_bundle_name}", $va_settings);
?>
<div>
<?php
if (isset($va_settings['forACLAccessScreen']) && $va_settings['forACLAccessScreen']) {
?>
<div class="globalAccess">
<div class='title'><?php
print $t_instance->getFieldInfo($vs_bundle_name, 'LABEL');
?>
</div>
<p>
<?php
} else {
?>
<div class="bundleContainer <?php