public function __construct() { parent::__construct('inkind', array('inkind' => 's', 'kindparent' => 's', 'id_inkind' => 'i', 'id_parent' => 'i')); parent::setDefaultOrder('id_parent asc'); parent::setTableSelect('inkind natural join kindparent'); parent::setFormFields(array('inkind' => array('text', 'Название вида'))); }
public function __construct() { parent::__construct('product', array('cost' => 'i', 'name_product' => 's', 'id_producer' => 'i', 'inkind' => 's', 'id_inkind' => 'i', 'id_product' => 'i', 'id_parent' => 'i', 'sum' => 'i', 'img' => 's')); parent::setDefaultOrder('id_parent asc'); parent::setTableSelect('product natural join inkind '); // parent::setFormFields( //array('name_product' => array('text', 'Название продукта' ), // 'id_inkind' => array('', '' ), // 'cost' => array('', '' ), // 'sum' => array('', '' ))); }
public function __construct() { parent::__construct('user', array('id_user' => 'i', 'login' => 's', 'password' => 's', 'status' => 's')); parent::setDefaultOrder('login'); parent::setFormFields(array('login' => array('text', 'Логин'), 'password' => array('password', 'Пароль'), 'status' => array('text', 'Статус'))); }