本文整理汇总了PHP中Zend_Registry::offsetExists方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Registry::offsetExists方法的具体用法?PHP Zend_Registry::offsetExists怎么用?PHP Zend_Registry::offsetExists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Registry
的用法示例。
在下文中一共展示了Zend_Registry::offsetExists方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isRegistered
/**
* Returns TRUE if the $index is a named value in the registry,
* or FALSE if $index was not found in the registry.
*
* @param string $index
* @return boolean
*/
public static function isRegistered($index)
{
if (self::$_registry === null) {
return false;
}
return self::$_registry->offsetExists($index);
}
示例2: offsetUnset
public function offsetUnset($index)
{
if (in_array($index, array('db', 'dao', 'userModel'))) {
if (!parent::offsetExists($index)) {
//not yet set, ignore
return;
}
}
return parent::offsetUnset($index);
}
示例3: offsetGet
/**
* Gibt den vorhandenen oder durch die Callback gesetzten Index zurück
* @param string $index
* @return mixed
*/
public function offsetGet($index)
{
if (!parent::offsetExists($index)) {
if (!isset($this->_callbacks[$index])) {
throw new Dragon_Application_Exception_System('incorrect index');
}
parent::offsetSet($index, $this->_callbacks[$index]());
}
return parent::offsetGet($index);
}
示例4: ficheAction
function ficheAction()
{
$individu = $this->_helper->Individu();
$this->metas(array('DC.Title' => "Fiche d'individu"));
$this->assert(null, $individu, 'fiche', "Vous n'avez pas le droit de voir cette fiche. ");
$this->metas(array('DC.Title' => $individu->getFullname(false, false)));
$this->formats('vcf', 'csv');
$this->view->chef = $this->assert(null, $individu, 'progression');
$this->view->individu = $individu;
$this->view->etape = $individu->findParentEtapes();
$this->view->apps = $individu->findAppartenances();
$s = $individu->getTable()->select()->order('date DESC');
$this->view->user = $user = $individu->findUser();
$this->actions->append("Éditer le CV scout", array('action' => 'inscrire'), array(null, $individu, 'inscrire'));
$this->actions->append("Éditer la fiche", array('action' => 'editer'), array(null, $individu));
if ($individu->isMember()) {
$this->actions->append("Paramètres utilisateur", array('controller' => 'membres', 'action' => 'parametres', 'membre' => $user->username, 'individu' => null), array(null, null, 'admin'));
if (!Zend_Registry::offsetExists('sudoer') && $this->assert(null, $individu->findUser(), 'sudo')) {
$this->actions->append("Prendre l'identité", array('controller' => 'membres', 'action' => 'sudo', 'username' => $user->username), array(null, null, 'admin'));
}
}
$this->actions->append("Supprimer", array('action' => 'supprimer'), array(null, $individu));
}