public static function reverse(NodeElement $option, DtActionOption $actionOption) { if ($actionOption->hasAttribute('data-original-title')) { $actionOption->setTitle($actionOption->getAttribute('data-original-title')); } }
private static function createRowOptionTest(DataTable $dt, ActionOption $action, Block $codeBlock) { $x = 1; $options = ['session' => '$session', 'xpath' => $action->getXpath()]; if ($action->isModalAction()) { $codeBlock->appendRenderable(new Comment('dt modal: ' . $action->getTitle())); $codeBlock->appendRenderable(new Statement(new StaticMethodCall('parent', 'dtModalTest', $options))); } elseif ($action->hasAttribute('href')) { $codeBlock->appendRenderable(new Comment('dt href: ' . $action->getTitle())); $codeBlock->appendRenderable(new Statement(new StaticMethodCall('parent', 'dtOptionActionTest', $options))); } else { $x = 1; } }