本文整理匯總了PHP中Shadowrun4::addParty方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shadowrun4::addParty方法的具體用法?PHP Shadowrun4::addParty怎麽用?PHP Shadowrun4::addParty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Shadowrun4
的用法示例。
在下文中一共展示了Shadowrun4::addParty方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: createParty
/**
* @return SR_Party
*/
public static function createParty()
{
$party = new self(array('sr4pa_id' => 0, 'sr4pa_name' => NULL, 'sr4pa_members' => '', 'sr4pa_contact_eta' => 0, 'sr4pa_action' => 'delete', 'sr4pa_target' => NULL, 'sr4pa_eta' => 0, 'sr4pa_last_action' => 'delete', 'sr4pa_last_target' => NULL, 'sr4pa_last_eta' => 0, 'sr4pa_options' => SR_Party::LOOT_KILL, 'sr4pa_ban' => NULL, 'sr4pa_distance' => '', 'sr4pa_xp' => 0, 'sr4pa_xp_total' => 0, 'sr4pa_level' => 0));
if (false === $party->insert()) {
return false;
}
Shadowrun4::addParty($party);
return $party;
}