/**
  * Constructs a new extended table
  * @param array $values Values for the table
  * @param string $formAction URL where the table form will point to
  * @param string $formName Name of the table form
  * @return null
  */
 public function __construct(array $values, $formAction, $formName = null)
 {
     parent::__construct($values);
     $this->form = new Form($formAction, $formName);
     $this->form->removeFromClass(Form::STYLE_FORM);
     $this->form->appendToClass(self::STYLE_TABLE);
     $this->isProcessed = false;
     $this->hasSearch = false;
     $this->searchQuery = null;
     $this->actions = array();
     $this->actionConfirmationMessages = array();
     $this->orderDirection = self::ORDER_DIRECTION_ASC;
     $this->orderMethod = null;
     $this->orderMethods = array();
     $this->page = 1;
     $this->pages = 1;
 }