/** * Returns content of current file * * @return string */ public function getCurrentFileContent() { if (!$this->getCurrentFile()) { return ''; } if (User_Options::LINEOUTPUTORDER_FILO == User_Options::getLineOutputOrder()) { $content = implode(array_reverse(file(Log_Viewer_Admin::transformFilePath($this->getCurrentFile())))); } else { $content = file_get_contents(Log_Viewer_Admin::transformFilePath($this->getCurrentFile()), false); } return $content; }
?> ">Autorefresh</label> <select name="<?php echo User_Options::KEYS_LINEOUTPUTORDER; ?> "> <option <?php selected(User_Options::LINEOUTPUTORDER_FIFO == User_Options::getLineOutputOrder()); ?> value="<?php echo User_Options::LINEOUTPUTORDER_FIFO; ?> ">FIFO </option> <option <?php selected(User_Options::LINEOUTPUTORDER_FILO == User_Options::getLineOutputOrder()); ?> value="<?php echo User_Options::LINEOUTPUTORDER_FILO; ?> ">FILO </option> </select> <?php submit_button(__('Apply'), 'button', self::$_KEYS_VIEWFIELDS_SUBMIT, false); ?> </form> </div> </div>