32 lines
782 B
PHP
32 lines
782 B
PHP
<?php
|
|
|
|
class CmsPsExtraFieldsGroup extends ObjectModel {
|
|
|
|
public $id_cmsps_extrafields_group;
|
|
public $position;
|
|
public $name;
|
|
|
|
/**
|
|
* @see ObjectModel::$definition
|
|
*/
|
|
public static $definition = array(
|
|
'table' => 'cmsps_extrafields_group',
|
|
'primary' => 'id_cmsps_extrafields_group',
|
|
'multilang' => TRUE,
|
|
'multilang_shop' => TRUE,
|
|
'fields' => array(
|
|
'position' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
|
|
|
|
// Lang fields
|
|
'name' => array('type' => self::TYPE_STRING, 'lang' => TRUE, 'validate' => 'isGenericName', 'required' => TRUE, 'size' => 255),
|
|
|
|
),
|
|
);
|
|
|
|
public static function getAll($id_lang) {
|
|
$collection = new Collection('CmsPsExtraFieldsGroup', $id_lang);
|
|
return $collection->getResults();
|
|
}
|
|
|
|
}
|