Logo white

Administrator / seo-dev

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • seo-dev
  • src
  • lib
  • models
  • fields.php
  • first commit
    ef60cd4d
    Administrator authored
    2015-08-20 09:28:12 +0300  
    Browse Code ยป
fields.php 464 Bytes
Edit Raw Blame History Permalink
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;
        }
    }

}