本文整理匯總了PHP中thebuggenie\core\framework\Event::getParameters方法的典型用法代碼示例。如果您正苦於以下問題:PHP Event::getParameters方法的具體用法?PHP Event::getParameters怎麽用?PHP Event::getParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類thebuggenie\core\framework\Event
的用法示例。
在下文中一共展示了Event::getParameters方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testParameters
/**
* @covers \thebuggenie\core\framework\Event::getParameters
* @covers \thebuggenie\core\framework\Event::getParameter
* @depends testCreateNew
*/
public function testParameters(\thebuggenie\core\framework\Event $event)
{
$this->assertArrayHasKey('param1', $event->getParameters());
$this->assertEquals(1, $event->getParameter('param1'));
$this->assertArrayHasKey('param2', $event->getParameters());
$this->assertEquals(2, $event->getParameter('param2'));
}
示例2: listen_userDropdownAnon
public function listen_userDropdownAnon(framework\Event $event)
{
if ($this->isOutgoingNotificationsEnabled()) {
framework\ActionComponent::includeComponent('mailing/userDropdownAnon', $event->getParameters());
}
}
示例3: User__removeStarredArticle
/**
* Removes an article from the list of flagged articles
*
* @param framework\Event $event
*/
public function User__removeStarredArticle(framework\Event $event)
{
$user = $event->getSubject();
$arguments = $event->getParameters();
$article_id = $arguments[0];
UserArticles::getTable()->removeStarredArticle($user->getID(), $article_id);
if (isset($user->_starredarticles)) {
$articles = $user->_retrieve('publish', 'starredarticles');
unset($articles[$article_id]);
$user->_store('publish', 'starredarticles', $articles);
}
$event->setProcessed();
$event->setReturnValue(true);
}