本文整理汇总了PHP中caInitialValuesArrayHasValue函数的典型用法代码示例。如果您正苦于以下问题:PHP caInitialValuesArrayHasValue函数的具体用法?PHP caInitialValuesArrayHasValue怎么用?PHP caInitialValuesArrayHasValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caInitialValuesArrayHasValue函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$vs_id_prefix = $this->getVar('placement_code') . $this->getVar('id_prefix');
$va_labels = $this->getVar('labels');
$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
//
?>
示例2: isset
$vn_placement_id = (int) $va_settings['placement_id'];
$vb_batch = $this->getVar('batch');
$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'" : '';
示例3: array
$vb_batch = $this->getVar('batch');
// fetch data for bundle preview
$vs_bundle_preview = $t_instance->get($vs_bundle_name, array('convertCodesToDisplayText' => true));
if (is_array($vs_bundle_preview)) {
$vs_bundle_preview = '';
}
$va_errors = array();
if (is_array($va_action_errors = $this->getVar('errors'))) {
foreach ($va_action_errors as $o_error) {
$va_errors[] = $o_error->getErrorDescription();
}
}
if ($vb_batch) {
print caBatchEditorIntrinsicModeControl($t_instance, $vs_id_prefix);
} else {
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);