Exemple #1
0
 public function actionInlineEditForm($threads, $params)
 {
     $method = $talkpage = $operand = null;
     if (isset($params['method'])) {
         $method = $params['method'];
     }
     if (isset($params['talkpage'])) {
         $talkpage = $params['talkpage'];
     }
     if ($talkpage) {
         $talkpage = new Article(Title::newFromText($talkpage), 0);
     } else {
         $talkpage = null;
     }
     if (count($threads)) {
         $operand = $threads[0];
         $operand = $operand->id();
     }
     $output = LqtView::getInlineEditForm($talkpage, $method, $operand);
     $result = array('inlineeditform' => array('html' => $output));
     /* FIXME
     		$result['resources'] = LqtView::getJSandCSS();
     		$result['resources']['messages'] = LqtView::exportJSLocalisation();
     		*/
     $this->getResult()->addValue(null, 'threadaction', $result);
 }
Exemple #2
0
 public function actionInlineEditForm($threads, $params)
 {
     $method = $talkpage = $operand = null;
     if (isset($params['method'])) {
         $method = $params['method'];
     }
     if (isset($params['talkpage'])) {
         $talkpage = $params['talkpage'];
     }
     //HJ : f**k 받는다.
     if (isset($params['f**k'])) {
         $f**k = $params['f**k'];
     }
     if ($talkpage) {
         $talkpage = new Article(Title::newFromText($talkpage), 0);
     } else {
         $talkpage = null;
     }
     if (count($threads)) {
         $operand = $threads[0];
         $operand = $operand->id();
     }
     //HJ : 중요!! 여기서 javascript에서 받은 f**k 인자를 물려받고, 이를 view로 넘겨줘서, html hidden으로 f**k 값을 부여해서 js로 읽을수 있게 하는겨
     //$output = LqtView::getInlineEditForm( $talkpage, $method, $operand);
     $output = LqtView::getInlineEditForm($talkpage, $method, $operand, $f**k);
     $result = array('inlineeditform' => array('html' => $output));
     /* FIXME
     		$result['resources'] = LqtView::getJSandCSS();
     		$result['resources']['messages'] = LqtView::exportJSLocalisation();
     		*/
     $this->getResult()->addValue(null, 'threadaction', $result);
 }