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
 * Field 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 field
22
 * Customfield field 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>
Línea 65... Línea 55...
65
                        'null' => NULL_ALLOWED
55
                        'null' => NULL_ALLOWED
66
                ],
56
                ],
67
                'descriptionformat' => [
57
                'descriptionformat' => [
68
                        'type' => PARAM_INT,
58
                        'type' => PARAM_INT,
69
                        'default' => FORMAT_MOODLE,
59
                        'default' => FORMAT_MOODLE,
70
                        'optional' => true
60
                        'optional' => true,
-
 
61
                        'null' => NULL_ALLOWED,
71
                ],
62
                ],
72
                'sortorder' => [
63
                'sortorder' => [
73
                        'type' => PARAM_INT,
64
                        'type' => PARAM_INT,
74
                        'optional' => true,
65
                        'optional' => true,
75
                        'default' => -1,
66
                        'default' => -1,
-
 
67
                        'null' => NULL_ALLOWED,
76
                ],
68
                ],
77
                'categoryid' => [
69
                'categoryid' => [
78
                        'type' => PARAM_INT
70
                        'type' => PARAM_INT
79
                ],
71
                ],
80
                'configdata' => [
72
                'configdata' => [