LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • Docoflow\Docoflow
  • Docoflow\Entity\Group
  • Docoflow\Entity\Step
  • Docoflow\Entity\Verificator
  • Docoflow\Facades\Action
  • Docoflow\Facades\Activity
  • Docoflow\Facades\Flo
  • Docoflow\Facades\StateActivity
  • Docoflow\Flo
  • Docoflow\Models\Workflow
  • Docoflow\Models\WorkflowAction
  • Docoflow\Models\WorkflowActivity
  • Docoflow\Models\WorkflowGroups
  • Docoflow\Models\WorkflowNotification
  • Docoflow\Models\WorkflowState
  • Docoflow\Models\WorkflowStateActivity
  • Docoflow\Models\WorkflowStep
  • Docoflow\Models\WorkflowVerificator
  • Docolight
  • Docolight\Agno\AgnoModule
  • Docolight\Container\Container
  • Docolight\Http\Headers
  • Docolight\Http\JsonResponse
  • Docolight\Http\MimeResponse
  • Docolight\Http\Response
  • Docolight\Http\ResponseFactory
  • Docolight\Rest\Handler\RestfulErrorHandler
  • Docolight\Rest\Http\RestFulController
  • Docolight\Support\ActiveRecordWrapper
  • Docolight\Support\Arr
  • Docolight\Support\Carbonate
  • Docolight\Support\ClassLoader
  • Docolight\Support\Collection
  • Docolight\Support\CollectionDataProvider
  • Docolight\Support\Debug\Dumper
  • Docolight\Support\Debug\HtmlDumper
  • Docolight\Support\Facade
  • Docolight\Support\Factory
  • Docolight\Support\Fluent
  • Docolight\Support\Html
  • Docolight\Support\IterablePager
  • Docolight\Support\Repository
  • Docolight\Support\Set
  • Docolight\Support\Str
  • Docotory\Factory

Interfaces

  • Docoflow\Contracts\DocoflowContract
  • Docoflow\Contracts\ValidationStatus
  • Docolight\Http\Contracts\Arrayable

Traits

  • Docoflow\Traits\BulkValidator
  • Docoflow\Traits\Entity
  • Docoflow\Traits\HasMutator
  • Docoflow\Traits\Validable
  • Docolight\Agno\Traits\HasAssetsUrl
  • Docolight\Agno\Traits\HasAutoload
  • Docolight\Support\Traits\Macroable
  • Docotory\Traits\HasFactories

Exceptions

  • Docolight\Container\BindingResolutionException
  • Docotory\ResolvingTypeException

Functions

  • array_add
  • array_build
  • array_collapse
  • array_divide
  • array_dot
  • array_except
  • array_first
  • array_flatten
  • array_forget
  • array_get
  • array_has
  • array_last
  • array_only
  • array_pluck
  • array_pull
  • array_replace_value
  • array_set
  • array_sort
  • array_sort_recursive
  • array_where
  • cache
  • camel_case
  • class_basename
  • class_uses_recursive
  • collect
  • container
  • data_get
  • dd
  • def
  • dump
  • e
  • ends_with
  • fluent
  • get
  • head
  • input
  • last
  • object_get
  • preg_replace_sub
  • request
  • response
  • session
  • snake_case
  • starts_with
  • str_contains
  • str_finish
  • str_is
  • str_limit
  • str_random
  • str_replace_array
  • str_slug
  • studly_case
  • title_case
  • trait_uses_recursive
  • transaction
  • trimtolower
  • value
  • with
  1 <?php
  2 
  3 namespace Docoflow\Models;
  4 
  5 use Yii;
  6 use CDbCriteria;
  7 use CActiveRecord;
  8 use CActiveDataProvider;
  9 
 10 /**
 11  * This is the model class for table "workflow_notification".
 12  *
 13  * The followings are the available columns in table 'workflow_notification':
 14  *
 15  * @property int $id
 16  * @property int $assignee
 17  */
 18 class WorkflowNotification extends CActiveRecord
 19 {
 20     /**
 21      * Get DB Connection
 22      *
 23      * @return \CDbConnection
 24      */
 25     public function getDbConnection()
 26     {
 27         Yii::app()->container->bindIf('docoflow.connection', function ($container) {
 28             return Yii::app()->db;
 29         });
 30 
 31         return Yii::app()->container->make('docoflow.connection');
 32     }
 33 
 34     /**
 35      * Returns the static model of the specified AR class.
 36      *
 37      * @param string $className active record class name.
 38      *
 39      * @return WorkflowNotification the static model class
 40      */
 41     public static function model($className = __CLASS__)
 42     {
 43         return parent::model($className);
 44     }
 45 
 46     /**
 47      * @return string the associated database table name
 48      */
 49     public function tableName()
 50     {
 51         return '"workflow_notification"';
 52     }
 53 
 54     /**
 55      * @return array validation rules for model attributes.
 56      */
 57     public function rules()
 58     {
 59         // NOTE: you should only define rules for those attributes that
 60         // will receive user inputs.
 61         return array(
 62             array('assignee', 'required'),
 63             array('assignee', 'numerical', 'integerOnly' => true),
 64             // The following rule is used by search().
 65             // Please remove those attributes that should not be searched.
 66             array('id, assignee', 'safe', 'on' => 'search'),
 67         );
 68     }
 69 
 70     /**
 71      * @return array relational rules.
 72      */
 73     public function relations()
 74     {
 75         // NOTE: you may need to adjust the relation name and the related
 76         // class name for the relations automatically generated below.
 77         return array(
 78         );
 79     }
 80 
 81     /**
 82      * @return array customized attribute labels (name=>label)
 83      */
 84     public function attributeLabels()
 85     {
 86         return array(
 87             'id' => 'ID',
 88             'assignee' => 'Assignee',
 89         );
 90     }
 91 
 92     /**
 93      * Retrieves a list of models based on the current search/filter conditions.
 94      *
 95      * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
 96      */
 97     public function search()
 98     {
 99         // Warning: Please modify the following code to remove attributes that
100         // should not be searched.
101 
102         $criteria = new CDbCriteria();
103 
104         $criteria->compare('"id"', $this->id);
105         $criteria->compare('"assignee"', $this->assignee);
106 
107         return new CActiveDataProvider($this, array(
108             'criteria' => $criteria,
109         ));
110     }
111 }
112 
LFT API documentation generated by ApiGen