本文整理匯總了PHP中WC_Challenge::isCaseI方法的典型用法代碼示例。如果您正苦於以下問題:PHP WC_Challenge::isCaseI方法的具體用法?PHP WC_Challenge::isCaseI怎麽用?PHP WC_Challenge::isCaseI使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WC_Challenge
的用法示例。
在下文中一共展示了WC_Challenge::isCaseI方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getForm
private function getForm(WC_Challenge $chall)
{
$buttons = array('edit' => $this->module->lang('btn_edit'), 'reset' => $this->module->lang('btn_reset'), 'delete' => $this->module->lang('btn_delete'));
$data = array('score' => array(GWF_Form::INT, $chall->getVar('chall_score'), $this->module->lang('th_chall_score')), 'title' => array(GWF_Form::STRING, $chall->getVar('chall_title'), $this->module->lang('th_chall_title')), 'tags' => array(GWF_Form::STRING, $chall->getVar('chall_tags'), $this->module->lang('th_chall_tags')), 'url' => array(GWF_Form::STRING, $chall->getVar('chall_url'), $this->module->lang('th_chall_url')), 'solution' => array(GWF_Form::STRING, '', $this->module->lang('th_chall_solution')), 'creators' => array(GWF_Form::STRING, $chall->getVar('chall_creator_name'), $this->module->lang('th_chall_creator_name')), 'case_i' => array(GWF_Form::CHECKBOX, $chall->isCaseI(), $this->module->lang('th_chall_case_i')), 'cmd' => array(GWF_Form::SUBMITS, $buttons));
return new GWF_Form($this, $data);
}