Hypertable_ThriftGen_ColumnFamily::__construct PHP Method

__construct() public method

public __construct ( $vals = null )
    public function __construct($vals = null)
    {
        if (!isset(self::$_TSPEC)) {
            self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'ag', 'type' => TType::STRING), 3 => array('var' => 'max_versions', 'type' => TType::I32), 4 => array('var' => 'ttl', 'type' => TType::STRING));
        }
        if (is_array($vals)) {
            if (isset($vals['name'])) {
                $this->name = $vals['name'];
            }
            if (isset($vals['ag'])) {
                $this->ag = $vals['ag'];
            }
            if (isset($vals['max_versions'])) {
                $this->max_versions = $vals['max_versions'];
            }
            if (isset($vals['ttl'])) {
                $this->ttl = $vals['ttl'];
            }
        }
    }
Hypertable_ThriftGen_ColumnFamily