���� 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 "{{%artikel}}". * * @property int $id * @property string $judul * @property string $slug * @property int $id_kategori_artikel * @property string $isi * @property string|null $thumbnail * @property string|null $file * @property int $id_status_publish * @property string|null $created_at * @property string|null $updated_at * @property int|null $created_by * @property int|null $updated_by * @property int $active * * @property MasterKategoriArtikel $kategoriArtikel * @property MasterStatusPublish $statusPublish */ class Artikel extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return '{{%artikel}}'; } /** * @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 [ [['judul', 'slug', 'id_kategori_artikel', 'isi', 'id_status_publish'], 'required'], [['judul', 'isi'], 'string'], [['id_kategori_artikel', 'id_status_publish', 'created_by', 'updated_by', 'active'], 'integer'], [['created_at', 'updated_at'], 'safe'], [['slug', 'thumbnail', 'file'], 'string', 'max' => 255], [['id_kategori_artikel'], 'exist', 'skipOnError' => true, 'targetClass' => MasterKategoriArtikel::className(), 'targetAttribute' => ['id_kategori_artikel' => 'id']], [['id_status_publish'], 'exist', 'skipOnError' => true, 'targetClass' => MasterStatusPublish::className(), 'targetAttribute' => ['id_status_publish' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'judul' => 'Judul', 'slug' => 'Slug', 'id_kategori_artikel' => 'Id Kategori Artikel', 'isi' => 'Isi', 'thumbnail' => 'Thumbnail', 'file' => 'File', 'id_status_publish' => 'Id Status Publish', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'created_by' => 'Created By', 'updated_by' => 'Updated By', 'active' => 'Active', ]; } /** * Gets query for [[KategoriArtikel]]. * * @return \yii\db\ActiveQuery */ public function getKategoriArtikel() { return $this->hasOne(MasterKategoriArtikel::className(), ['id' => 'id_kategori_artikel']); } /** * Gets query for [[StatusPublish]]. * * @return \yii\db\ActiveQuery */ public function getStatusPublish() { return $this->hasOne(MasterStatusPublish::className(), ['id' => 'id_status_publish']); } }