File manager - Edit - /home/jardides/www/Jardi-design/components/com_phocaguestbook/models/rules/phocaguestbookcontent.php
Back
<?php /** * @package phocaguestbook * @subpackage Models * @copyright Copyright (C) 2012 Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ defined('_JEXEC') or die; class JFormRulePhocaguestbookContent extends JFormRule { public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null) { //E_ERROR, E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE. $info = array(); $info['field'] = 'guestbook_content'; $params = JComponentHelper::getParams('com_phocaguestbook'); //Maximum of character, they will be saved in database $value = substr($value, 0, $params->get('max_char')); return true; //parent::test } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings