Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/media/zoo/elements/itemauthor/itemauthor.php
Назад
<?php /** * @package com_zoo * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ /* Class: ElementItemAuthor The item author element class */ class ElementItemAuthor extends Element { /* Function: hasValue Checks if the element's value is set. Parameters: $params - render parameter Returns: Boolean - true, on success */ public function hasValue($params = array()) { return true; } /* Function: edit Renders the edit form field. Returns: String - html */ public function edit() { return null; } /* Function: render Renders the element. Parameters: $params - render parameter Returns: String - html */ public function render($params = array()) { if (!empty($this->_item)) { $author = $this->_item->created_by_alias; $user = $this->app->user->get($this->_item->created_by); if (empty($author) && $user) { $author = $user->name; } return $author; } } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка