本文整理汇总了PHP中aTools::getSlotTypesInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP aTools::getSlotTypesInfo方法的具体用法?PHP aTools::getSlotTypesInfo怎么用?PHP aTools::getSlotTypesInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aTools
的用法示例。
在下文中一共展示了aTools::getSlotTypesInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if ($infinite) {
?>
<ul class="a-ui a-controls a-area-controls clearfix">
<?php
# Slot Controls
?>
<li>
<?php
$addslot_button_style = sfConfig::get('app_a_addslot_button_style', 'big');
?>
<?php
$slotTypesInfo = aTools::getSlotTypesInfo($options);
?>
<?php
if (count($slotTypesInfo) > 1) {
?>
<?php
echo a_js_button(a_get_option($options, 'areaLabel', a_('Add Content')), array('a-add', 'a-add-slot', 'icon', 'big'), 'a-add-slot-' . $pageid . '-' . $name);
?>
<ul class="a-ui a-options a-area-options dropshadow">
<?php
include_partial('a/addSlot', array('id' => $page->id, 'name' => $name, 'options' => $options, 'slotTypesInfo' => $slotTypesInfo));
?>
</ul>
<?php
a_js_call('apostrophe.menuToggle(?)', array('button' => '#a-add-slot-' . $pageid . '-' . $name, 'classname' => 'a-options-open', 'overlay' => false));
示例2: executeAddSlot
/**
* DOCUMENT ME
* @param sfWebRequest $request
*/
public function executeAddSlot(sfWebRequest $request)
{
$page = $this->retrievePageForAreaEditing();
aTools::setCurrentPage($page);
$this->type = $this->getRequestParameter('type');
$this->options = aTools::getAreaOptions($page->id, $this->name);
aTools::setRealUrl($request->getParameter('actual_url'));
if (!in_array($this->type, array_keys(aTools::getSlotTypesInfo($this->options)))) {
$this->forward404();
}
}
示例3: isset
<?php
// Compatible with sf_escaping_strategy: true
$id = isset($id) ? $sf_data->getRaw('id') : null;
$name = isset($name) ? $sf_data->getRaw('name') : null;
$options = isset($options) ? $sf_data->getRaw('options') : null;
$areaLabel = isset($areaLabel) ? $sf_data->getRaw('areaLabel') : null;
$singleSlot = isset($singleSlot) ? $sf_data->getRaw('singleSlot') : null;
$slotTypesInfo = isset($slotTypesInfo) ? $sf_data->getRaw('slotTypesInfo') : aTools::getSlotTypesInfo($options);
use_helper('a');
?>
<?php
foreach ($slotTypesInfo as $type => $info) {
?>
<?php
if (!$singleSlot) {
?>
<li class="a-options-item">
<?php
}
?>
<?php
$label = $info['label'];
?>
<?php
if ($singleSlot) {
?>
<?php