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
 * Customfield category persistent class
-
 
19
 *
-
 
20
 * @package   core_customfield
-
 
21
 * @copyright 2018 Toni Barbera <toni@moodle.com>
-
 
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
23
 */
-
 
24
 
16
 
Línea 25... Línea 17...
25
namespace core_customfield;
17
namespace core_customfield;
Línea 26... Línea -...
26
 
-
 
27
use core\persistent;
-
 
28
 
18
 
29
defined('MOODLE_INTERNAL') || die;
19
use core\persistent;
30
 
20
 
31
/**
21
/**
32
 * Class category
22
 * Customfield category persistent class
33
 *
23
 *
34
 * @package core_customfield
24
 * @package   core_customfield
35
 * @copyright 2018 Toni Barbera <toni@moodle.com>
25
 * @copyright 2018 Toni Barbera <toni@moodle.com>
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Línea 58... Línea 48...
58
                        'null' => NULL_ALLOWED
48
                        'null' => NULL_ALLOWED
59
                ],
49
                ],
60
                'descriptionformat' => [
50
                'descriptionformat' => [
61
                        'type' => PARAM_INT,
51
                        'type' => PARAM_INT,
62
                        'default' => FORMAT_MOODLE,
52
                        'default' => FORMAT_MOODLE,
63
                        'optional' => true
53
                        'optional' => true,
-
 
54
                        'null' => NULL_ALLOWED,
64
                ],
55
                ],
65
                'component' => [
56
                'component' => [
66
                        'type' => PARAM_COMPONENT
57
                        'type' => PARAM_COMPONENT
67
                ],
58
                ],
68
                'area' => [
59
                'area' => [
Línea 78... Línea 69...
78
                        'optional' => false
69
                        'optional' => false
79
                ],
70
                ],
80
                'sortorder' => [
71
                'sortorder' => [
81
                        'type' => PARAM_INT,
72
                        'type' => PARAM_INT,
82
                        'optional' => true,
73
                        'optional' => true,
83
                        'default' => -1
74
                        'default' => -1,
-
 
75
                        'null' => NULL_ALLOWED,
84
                ],
76
                ],
85
        );
77
        );
86
    }
78
    }
87
}
79
}