Blame view

src/lib/models/fields.php 464 Bytes
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  <?php
  
  class fields extends \Phalcon\Mvc\Model
  {
      public $id;
      public $name;
      public $type;
      public $field_value;
      public $comments;
      public $weight;
      public $class_name;
      public $required;
  
      public function initialize()
      {
  
      }
  
      function isActive($array)
      {
          $array = explode(',' , $array);
          if(in_array($this->id, $array)){
              return true;
          } else{
              return false;
          }
      }
  
  }