<?php

namespace Pratik\Config;

use CodeIgniter\Config\BaseConfig;

class Users_Config extends BaseConfig

{

	

	public $basic = array('id'=>array(

							'name' => 'id','dbtype' => 'varchar', 'type' => 'hidden', 'target' => '','label' => 'Id','lenght' => '11'),

						 'code'=>array(

							'name' => 'code','dbtype' => 'varchar', 'type' => 'text','label' => 'User Code', 'lenght' => '16','unique'=>1, 'alc'=>1),

						 'name'=>array(

							'name' => 'name','dbtype' => 'varchar', 'type' => 'text','icon'=>'paragraph-justify2','label' => 'Name', 'attrib'=> 'required', 'error-mesage'=>'Ad adresi gereklidir.','lenght' => '64'),

						 'surname'=>array(

							'name' => 'surname','dbtype' => 'varchar', 'type' => 'text','label' => 'Surname', 'attrib'=> 'required', 'error-mesage'=>'Soyad adresi gereklidir.','lenght' => '64',),

						 'email'=>array(

							'name' => 'email','dbtype' => 'varchar', 'type' => 'email','label' => 'Email Address', 'attrib'=> 'required', 'error-mesage'=>'Email adresi gereklidir.','lenght' => '128',),

						 'password'=>array(

							'name' => 'password','dbtype' => 'varchar', 'type' => 'password','icon'=>'key','label' => 'Password', 'attrib'=> 'required', 'error-mesage'=>'Şifre adresi gereklidir.','lenght' => '64','class' => '',),

						 'birthdate'=>array(

							'name' => 'birthdate','type' => 'date', 'label' => 'Birt Date','icon'=>'light', 'lenght' => '16', 'class'=>"pickadate-accessibility"),

						 'phone'=>array(

							'name' => 'phone','dbtype' => 'varchar', 'type' => 'text','label' => 'Telephone','lenght' => '12',),

						 'mobile'=>array(

							'name' => 'mobile','dbtype' => 'varchar', 'type' => 'text','lenght' => '12','label' => 'Mobile Phone',),

						 'alc'=>array(

							'name' => 'alc','dbtype' => 'int', 'type' => 'select', 'source'=>'permissions','lenght' => '11', 

		'label' => 'Permission Level',),

						 'state'=>array(

							'name' => 'state','dbtype' => 'int', 'type' => 'yesno','lenght' => '1','label' => 'Is Active?',),

						  'image'=>array(

							'name' => 'image', 'dbtype' => 'varchar', 'type' => 'image', 'label' => 'User Image', 'lenght' => '255'),



						);



	public $metas = array('address'=>array(

							'name' => 'address','type' => 'textarea', 'label' => 'Address','lenght' => '254'),

						 'city'=>array(

							'name' => 'city','type' => 'filler', 'label' => 'City', 'lenght' => '16', 'source'=>'cities',  'target'=>'district'),

						 'district'=>array(

							'name' => 'district','type' => 'select', 'label' => 'District', 'source'=>'districts', 'lenght' => '16'),

						 'note'=>array(

							'name' => 'note','type' => 'texteditor', 'label' => 'Note', 'lenght' => '2500'),

						);

}