コード例 #1
0
ファイル: chessknight.php プロジェクト: ilivanoff/www
 public function getPluginContent($content, ArrayAdapter $params, PluginFetchingContext $ctxt)
 {
     $data['solutions'] = ChessKnightManager::getInstance()->getSystemSolutions();
     return new PluginContent($this->getFoldedEntity()->fetchTpl($data));
 }
コード例 #2
0
ファイル: ChessKnightAns.php プロジェクト: ilivanoff/www
 protected function executeImpl(ArrayAdapter $params)
 {
     ChessKnightManager::getInstance()->registerSolution($params->str('hodes'));
     return new AjaxSuccess();
 }