本文整理汇总了PHP中Text::denominazioneAttoShort方法的典型用法代码示例。如果您正苦于以下问题:PHP Text::denominazioneAttoShort方法的具体用法?PHP Text::denominazioneAttoShort怎么用?PHP Text::denominazioneAttoShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Text
的用法示例。
在下文中一共展示了Text::denominazioneAttoShort方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeLastAtto
public function executeLastAtto()
{
$id = $this->getRequestParameter('id');
$atto = OppAttoPeer::retrieveByPk($id);
$this->forward404Unless($atto instanceof OppAtto);
$c = oppNewsPeer::getNewsForItemCriteria('OppAtto', $id);
$c->addDescendingOrderByColumn(NewsPeer::DATE);
$feed = $this->_make_feed_from_pager('Ultime per ' . Text::denominazioneAttoShort($atto), '@singolo_atto?id=' . $id, $this->_get_newspager_from_criteria($c));
$this->_send_output($feed);
return sfView::NONE;
}
示例2: setPage
protected function setPage($page_name = null)
{
// Get page from request if not given as parameter (default behaviour)
if (is_null($page_name)) {
$page_name = $this->getRequestParameter('page', $this->startPage);
}
// Handle case insensitivity
$page_name = strtolower($page_name);
// Support default page if not specified in namespace
if (substr($page_name, -1) == ':') {
$page_name .= $this->startPage;
}
// Retrieve the page, or start a new one if cannot be found
$this->page = nahoWikiPagePeer::retrieveByName($page_name);
if (!$this->page) {
return;
}
// Retrieve the revision
$revision = $this->getRequestParameter('revision', $this->page->getLatestRevision());
$this->revision = $this->page->getRevision($revision);
if (!$this->revision) {
$this->initNewRevision();
}
// Generate the URI parameters to keep trace of the requested page
$this->uriParams = 'page=' . $this->page->getName();
if ($this->revision->getRevision() != $this->page->getLatestRevision()) {
$this->uriParams .= '&revision=' . $this->revision->getRevision();
}
// Permissions management
$this->canView = $this->page->canView($this->getUser());
$this->canEdit = $this->page->canEdit($this->getUser());
// Retriev item name and type of item (tab and breadcrumbs)
list($tipo, $id) = split("_", $this->page->getName());
switch ($tipo) {
case 'atto':
$this->item = OppAttoPeer::retrieveByPK($id);
$this->item_name = Text::denominazioneAttoShort($this->item);
break;
case 'votazione':
$this->item = OppVotazionePeer::retrieveByPK($id);
$this->item_name = $this->item->getTitolo();
break;
case 'emendamento':
$this->item = OppEmendamentoPeer::retrieveByPK($id);
$attoPortante = $this->item->getAttoPortante();
$this->item_name = "Emendamento " . $this->item->getTitolo() . " relativo a " . Text::denominazioneAttoShort($attoPortante) . " - " . $attoPortante->getTitolo();
break;
}
$this->item_type = $tipo;
}
示例3: link_to
<nav class="row" id="tabs-container">
<ul id="content-tabs" class="float-container tools-container">
<li class="<?php
echo $current == 'atto' ? 'current' : '';
?>
">
<h2><?php
echo link_to(Text::denominazioneAttoShort($atto), '@singolo_atto?id=' . $atto->getId());
?>
</h2>
</li>
<?php
if ($nb_emendamenti > 0) {
?>
<li class="<?php
echo $current == 'emendamenti' ? 'current' : '';
?>
">
<h5><?php
echo link_to(format_number_choice('[1]Un emendamento|(1,+Inf]%1% emendamenti', array('%1%' => $nb_emendamenti), $nb_emendamenti), '@emendamenti_atto?id=' . $atto->getId());
?>
</h5>
</li>
<?php
}
?>
<li class="<?php
echo $current == 'commenti' ? 'current' : '';
?>
">
<h5><?php
示例4: getShortTitle
public function getShortTitle()
{
return Text::denominazioneAttoShort($this);
}
示例5: executeAct
public function executeAct()
{
$this->act_id = $this->getRequestParameter('id');
$this->act = OppAttoPeer::retrieveByPK($this->act_id);
$this->n_news = oppNewsPeer::countNewsForItem('OppAtto', $this->act_id);
$this->getResponse()->setTitle('tutte le notizie su ' . $this->act->getOppTipoAtto()->getDescrizione() . ' ' . Text::denominazioneAttoShort($this->act) . ' - ' . sfConfig::get('app_main_title'));
$this->response->addMeta('description', 'Tutte le notizie aggiornate quotidianamente su presentazione e iter ' . $this->act->getOppTipoAtto()->getDescrizione() . ' ' . Text::denominazioneAttoShort($this->act), true);
$c = oppNewsPeer::getNewsForItemCriteria('OppAtto', $this->act_id);
$c->addDescendingOrderByColumn(NewsPeer::DATE);
if ($this->hasRequestParameter('itemsperpage')) {
$this->getUser()->setAttribute('itemsperpage', $this->getRequestParameter('itemsperpage'));
}
$itemsperpage = $this->getUser()->getAttribute('itemsperpage', sfConfig::get('app_pagination_limit'));
$pager = new deppNewsPager('News', $itemsperpage);
$pager->setCriteria($c);
$pager->setPage($this->getRequestParameter('page', 1));
$pager->init();
$this->pager = $pager;
}
示例6: include_component
<?php
if ($atto->getTipoAttoId() != 13 && $atto->getTipoAttoId() != 14) {
?>
<?php
echo include_component('atto', 'monitor_n_vote', array('atto' => $atto));
?>
<?php
echo include_partial('news/newsbox', array('title' => 'Atto', 'all_news_url' => '@news_atto?id=' . $atto->getId(), 'news' => oppNewsPeer::getNewsForItem('OppAtto', $atto->getId(), 10), 'context' => 0, 'rss_link' => '@feed_atto?id=' . $atto->getId()));
?>
<?php
}
?>
</div>
</div>
<?php
slot('breadcrumbs');
?>
<?php
echo link_to("home", "@homepage");
?>
/
<?php
include_partial('atto/breadcrumbsAtti', array('atto' => $atto));
?>
/
<?php
echo Text::denominazioneAttoShort($atto);
end_slot();
示例7: link_to
}
?>
<?php
if ($documento->getOppAtto()->getTipoAttoId() < 12 && $documento->getOppAtto()->getTipoAttoId() != 1 || $documento->getOppAtto()->getTipoAttoId() == 14) {
?>
<?php
echo link_to("atti non legislativi", "@attiNonLegislativi");
?>
<?php
}
?>
/
<?php
echo link_to(Text::denominazioneAttoShort($documento->getOppAtto()), 'atto/index?id=' . $documento->getOppAtto()->getId());
?>
/
<?php
echo $documento->getTitolo();
?>
<?php
end_slot();
?>
示例8: link_to
if ($act->getTipoAttoId() == 15 || $act->getTipoAttoId() == 16 || $act->getTipoAttoId() == 17) {
?>
<?php
echo link_to("decreti legislativi", "atto/decretoLegislativoList");
?>
<?php
}
?>
<?php
if ($act->getTipoAttoId() < 12 && $act->getTipoAttoId() != 1 || $act->getTipoAttoId() == 14) {
?>
<?php
echo link_to("atti non legislativi", "@attiNonLegislativi");
?>
<?php
}
?>
/
<?php
echo link_to(Text::denominazioneAttoShort($act), '@singolo_atto?id=' . $act_id);
?>
/
tutte le notizie
<?php
end_slot();