root/trunk/app/models/gallery.php

Revision 784, 1.4 kB (checked in by aarkerio, 8 weeks ago)

Triki Trake beggins

Line 
1<?php
2/**
3*  Chipotle Software TM
4*  Manuel Montoya 2002-2008
5*  GPLv3 manuel<arroba>mononeurona<punto>org
6*  @version 0.3
7*/
8
9class Gallery extends AppModel {
10    // Its always good practice to include this variable.
11    public $name        = 'Gallery';
12    public $belongsTo   = 'User';
13   
14    public $validate = array(
15      'name' => VALID_NOT_EMPTY,         //'/[a-z0-9\_\-]{3,}$/i',
16      'user_id' => VALID_NOT_EMPTY
17   );
18/*
19public $validate = array(
20        'login' => array('alphanumeric' => array(
21                                                 'rule' => 'alphaNumeric',
22                                             'required' => true,
23                                                         'message' => 'Alphabets and numbers only'
24                                   ),
25                                'between' => array(
26                                           'rule' => array('between', 5, 15),
27                                                                               'message' => 'Between 5 to 15 characters'
28                                           )
29                                ),
30                       'password' => array(
31                                   'rule' => array('minLength', '8'),
32                                                               'message' => 'Mimimum 8 characters long'
33                                   ),
34                       'email' => 'email',
35                       'born' => array(
36                               'rule' => 'date',
37                               'message' => 'Enter a valid date',
38                                                           'allowEmpty' => true
39                               )
40                       ); */
41}
42
43?>
Note: See TracBrowser for help on using the browser.