uawdijnntqw1x1x1
IP : 216.73.216.231
Hostname : 213-108-241-110.cprapid.com
Kernel : Linux 213-108-241-110.cprapid.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
digilove
/
public_html
/
cli
/
..
/
libraries
/
fof30
/
Date
/
..
/
View
/
DataView
/
..
/
DataView
/
Form.php
/
/
<?php /** * @package FOF * @copyright Copyright (c)2010-2019 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU GPL version 2 or later */ namespace FOF30\View\DataView; use FOF30\Form\Form as FormObject; use FOF30\Model\DataModel; use FOF30\Render\RenderInterface; defined('_JEXEC') or die; /** * Class Form * @package FOF30\View\DataView * * @deprecated 3.1 Support for XML forms will be removed in FOF 4 */ class Form extends Html implements DataViewInterface { /** @var FormObject The form to render */ protected $form; /** * Displays the view * * @param string $tpl The template to use * * @return boolean|null False if we can't render anything * * @throws \Exception */ public function display($tpl = null) { /** @var DataModel $model */ $model = $this->getModel(); // Get the form $this->form = $model->getForm(); $this->form->setModel($model); $this->form->setView($this); $eventName = 'onBefore' . ucfirst($this->doTask); $this->triggerEvent($eventName, array($tpl)); $preRenderResult = ''; if ($this->doPreRender) { @ob_start(); $this->preRender(); $preRenderResult = @ob_get_contents(); @ob_end_clean(); } try { $templateResult = $this->loadTemplate($tpl); } catch (\Exception $e) { $templateResult = $this->getRenderedForm(); } $eventName = 'onAfter' . ucfirst($this->doTask); $this->triggerEvent($eventName, array($tpl)); if (is_object($templateResult) && ($templateResult instanceof \Exception)) { throw $templateResult; } echo $preRenderResult . $templateResult; if ($this->doPostRender) { $this->postRender(); } return true; } /** * Returns the HTML rendering of the F0FForm attached to this view. Very * useful for customising a form page without having to meticulously hand- * code the entire form. * * @return string The HTML of the rendered form */ public function getRenderedForm() { $html = ''; $renderer = $this->container->renderer; if ($renderer instanceof RenderInterface) { // Load CSS and Javascript files defined in the form $this->form->loadCSSFiles(); $this->form->loadJSFiles(); /** @var DataModel $model */ $model = $this->getModel(); // Get the form's HTML $html = $renderer->renderForm($this->form, $model); } return $html; } }
/home/digilove/public_html/cli/../libraries/fof30/Date/../View/DataView/../DataView/Form.php