Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 12... Línea 12...
12
// GNU General Public License for more details.
12
// GNU General Public License for more details.
13
//
13
//
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea -...
16
 
-
 
17
/**
-
 
18
 * Contains class \core\output\icon_system_standard
-
 
19
 *
-
 
20
 * @package    core
-
 
21
 * @category   output
-
 
22
 * @copyright  2016 Damyon Wiese
-
 
23
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
24
 */
-
 
25
 
16
 
Línea 26... Línea -...
26
namespace core\output;
-
 
27
 
-
 
28
use renderer_base;
-
 
29
use pix_icon;
-
 
30
 
-
 
31
defined('MOODLE_INTERNAL') || die();
17
namespace core\output;
32
 
18
 
33
/**
19
/**
34
 * Standard icon rendering. No mapping - img tags used.
20
 * Standard icon rendering. No mapping - img tags used.
35
 *
21
 *
36
 * @package    core
22
 * @package    core
37
 * @category   output
23
 * @category   output
38
 * @copyright  2016 Damyon Wiese
24
 * @copyright  2016 Damyon Wiese
39
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 */
-
 
-
 
26
 */
41
class icon_system_standard extends icon_system {
27
class icon_system_standard extends icon_system {
42
 
28
    #[\Override]
43
    public function render_pix_icon(renderer_base $output, pix_icon $icon) {
29
    public function render_pix_icon(renderer_base $output, pix_icon $icon) {
44
        $data = $icon->export_for_template($output);
30
        $data = $icon->export_for_template($output);
Línea -... Línea 31...
-
 
31
        return $output->render_from_template('core/pix_icon', $data);
45
        return $output->render_from_template('core/pix_icon', $data);
32
    }
46
    }
33
 
47
 
34
    #[\Override]
48
    public function get_amd_name() {
-
 
49
        return 'core/icon_system_standard';
35
    public function get_amd_name() {
50
    }
-