~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to modules/font.module.php

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/*
 
3
 * Xibo - Digital Signage - http://www.xibo.org.uk
 
4
 * Copyright (C) 2014-15 Daniel Garner
 
5
 *
 
6
 * This file is part of Xibo.
 
7
 *
 
8
 * Xibo is free software: you can redistribute it and/or modify
 
9
 * it under the terms of the GNU Affero General Public License as published by
 
10
 * the Free Software Foundation, either version 3 of the License, or
 
11
 * any later version.
 
12
 *
 
13
 * Xibo is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU Affero General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Affero General Public License
 
19
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
class font extends Module
 
22
{
 
23
    /**
 
24
     * Preview code for a module
 
25
     * @param int $width
 
26
     * @param int $height
 
27
     * @param int $scaleOverride The Scale Override
 
28
     * @return string The Rendered Content
 
29
     */
 
30
    public function Preview($width, $height, $scaleOverride = 0)
 
31
    {
 
32
        // Never previewed in the browser.
 
33
        return $this->previewIcon();
 
34
    }
 
35
 
 
36
    /**
 
37
     * Get Resource
 
38
     * @param int $displayId
 
39
     * @return mixed
 
40
     */
 
41
    public function GetResource($displayId = 0)
 
42
    {
 
43
        $this->ReturnFile();
 
44
        exit();
 
45
    }
 
46
 
 
47
    /**
 
48
     * Is this module valid
 
49
     * @return int
 
50
     */
 
51
    public function IsValid()
 
52
    {
 
53
        // Yes
 
54
        return 1;
 
55
    }
 
56
}