dreamjob/app/Model/DreamjobPageImage.php

99 lines
2.2 KiB
PHP

<?php
App::uses('AppModel', 'Model');
/**
* MicDjPageImage Model
*
* @property PagePtr $PagePtr
*/
class DreamjobPageImage extends AppModel {
/**
* Use database config
*
* @var string
*/
public $useDbConfig = 'dreamjobMain';
/**
* Use table
*
* @var mixed False or table name
*/
public $useTable = 'mic_dj_page_image';
/**
* Primary key field
*
* @var string
*/
public $primaryKey = 'page_ptr_id';
/**
* Display field
*
* @var string
*/
public $displayField = 'page_ptr_id';
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'page_ptr_id' => array(
'numeric' => array(
'rule' => array('numeric'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
'multiple' => array(
'rule' => array('multiple'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
),
/* 'image' => array(
'notEmpty' => array(
'rule' => array('notEmpty'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
'alphaNumeric' => array(
'rule' => array('alphaNumeric'),
//'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
),*/
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
/**
* belongsTo associations
*
* @var array
*/
public $belongsTo = array(
'DreamjobPageInh' => array(
'className' => 'DreamjobPageInh',
'foreignKey' => 'page_ptr_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
}