Exemplo n.º 1
0
 public static function fromConfig(Config $config)
 {
     $options = new self();
     return $options->setBPaginate($config->isPaginationEnabled())->setBLengthChange($config->isLengthChangeEnabled())->setBProcessing($config->isProcessingEnabled())->setBFilter($config->isFilterEnabled())->setBSort($config->isSortEnabled())->setBInfo($config->isInfoEnabled())->setBAutoWidth($config->isAutoWidthEnabled())->setBScrollCollapse($config->isScrollCollapseEnabled())->setBScrollInfinite($config->isScrollInfiniteEnabled())->setIDisplayLength($config->getDisplayLength())->setBJQueryUI($config->isJQueryUIEnabled())->setSPaginationType($config->getPaginationType())->setBStateSave($config->isSaveStateEnabled())->setICookieDuration($config->getCookieDuration())->setAsStripClasses($config->getStripClasses())->setBServerSide($config->isServerSideEnabled())->setSAjaxSource($config->getAjaxSource())->setSScrollX($config->getScrollX())->setSScrollY($config->getScrollY())->setIScrollLoadGap($config->getScrollLoadGap())->setSCookiePrefix($config->getCookiePrefix())->setSDom($config->getDom());
 }