| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "Notificacion".
- *
- * @property int $id
- * @property string|null $envio
- * @property string|null $estatus
- * @property string|null $creado
- * @property string|null $modificado
- * @property string|null $detalle
- *
- * @property NotificacionUsuario[] $notificacionUsuarios
- */
- class Notificacion extends \yii\db\ActiveRecord {
- public const ESTATUS_NUEVO = "Nuevo";
- public const ESTATUS_ENVIANDO = "Enviando";
- public const ESTATUS_TERMINADO = "Terminado";
- public const ESTATUS_ERROR = "Error";
- const PLANTILLA_EVENTO = "laud_resumen_eventos";
- const PLANTILLA_LIDER_EVENTO = "laud_resumen_eventos_dependencia";
- const PLANTILLA_LIDER_GLOBAL = "laud_resumen_dependencias_lider_global";
-
- const PLANTILLA_LIDER_EVENTO_URL = "laud_lider_dependencia_url";
- const PLANTILLA_LIDER_GLOBAL_URL = "laud_lider_global_url";
- /**
- * {@inheritdoc}
- */
- public static function tableName() {
- return 'Notificacion';
- }
- /**
- * {@inheritdoc}
- */
- public function rules() {
- return [
- [['envio', 'creado', 'modificado', 'detalle'], 'safe'],
- [['estatus'], 'string', 'max' => 10],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels() {
- return [
- 'id' => 'ID',
- 'envio' => 'Envio',
- 'estatus' => 'Estatus',
- 'creado' => 'Creado',
- 'modificado' => 'Modificado',
- 'detalle' => 'Detalle',
- ];
- }
- /**
- * Gets query for [[NotificacionUsuarios]].
- *
- * @return \yii\db\ActiveQuery
- */
- public function getNotificacionUsuarios() {
- return $this->hasMany(NotificacionUsuario::class, ['idNotificacion' => 'id']);
- }
- }
|