Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public function setSelect(Select $select)
 {
     $this->select = $select;
     $this->dt->addRegisteredInput($select);
 }
Ejemplo n.º 3
0
 public function addInput(FormElement $input)
 {
     $this->inputs[] = $input;
     $this->dt->addInput($input);
 }
Ejemplo n.º 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)));
 }