示例#1
0
 private static function reverseFooter(NodeElement $wrap, dTable $dt)
 {
     $footer = $wrap->find('css', 'div.dataTables_footer');
     if ($footer) {
         $foot = new Footer($dt);
         self::reverseInfo($footer, $foot);
         if ($foot->getInfo() && $foot->getInfo()->shouldHavePager()) {
             self::reversePager($footer, $foot);
         }
         $dt->addFooter($foot);
     }
 }
示例#2
0
 public function setSelect(Select $select)
 {
     $this->select = $select;
     $this->dt->addRegisteredInput($select);
 }
示例#3
0
 public function addInput(FormElement $input)
 {
     $this->inputs[] = $input;
     $this->dt->addInput($input);
 }
示例#4
0
 private static function createPaginateTest(DataTable $dt, Block $codeBlock)
 {
     $paginate = $dt->getFooter()->getPager();
     $options = ['session' => '$session', 'controls' => ['activeXpath' => $paginate->getActive()->getXpath(), 'nextXpath' => $paginate->getNext()->getXpath()]];
     foreach ($paginate->getControls() as $key => $control) {
         $options['controls'][$control->getLabel()] = $control->getXpath();
     }
     $codeBlock->appendRenderable(new Statement(new StaticMethodCall('parent', 'dtPaginateTest', $options)));
 }