core/Field.php
private function get($name, $p = false)
    {
        if ($p && $this->_ref->hasProperty($name)) {
            $prop = $this->_ref->getProperty($name);
            if ($prop->isPublic()) {
                return $prop->getValue($this);
            }
        } else if ($name[0] == 'b' && preg_match('@^box([A-Z].*)$@', $name, $m)) {
            $name = Utils::camelToAttr($m[1]);
            return isset($this->_attr[$name]) ? $this->_attr[$name] : null;
        } else if ($name[0] == 'd' && preg_match('@^data([A-Z].*)$@', $name)) {
            $name = Utils::camelToAttr($name);
            return isset($this->_data[$name]) ? $this->_data[$name] : null;
        } else if ($name[0] == 'v' && preg_match('@^view([A-Z].*)$@', $name)) {
            return isset($this->_view[$name]) ? $this->_view[$name] : null;
        } else if ($name == 'value') {
            if ($this->_value !== null || $this->form == null || $this->form->getType() != 'add' || $this->default === null || $this->default === '') {
                return $this->_value;
            } else {
                return $this->default;
            }
        } else {
            return isset($this->_extends[$name]) ? $this->_extends[$name] : null;
        }
    }
private function get($name, $p = false)
    {
        if ($p && $this->_ref->hasProperty($name)) {
            $prop = $this->_ref->getProperty($name);
            if ($prop->isPublic()) {
                return $prop->getValue($this);
            }
        } else if ($name[0] == 'b' && preg_match('@^box([A-Z].*)$@', $name, $m)) {
            $name = Utils::camelToAttr($m[1]);
            return isset($this->_attr[$name]) ? $this->_attr[$name] : null;
        } else if ($name[0] == 'd' && preg_match('@^data([A-Z].*)$@', $name)) {
            $name = Utils::camelToAttr($name);
            return isset($this->_data[$name]) ? $this->_data[$name] : null;
        } else if ($name[0] == 'v' && preg_match('@^view([A-Z].*)$@', $name)) {
            return isset($this->_view[$name]) ? $this->_view[$name] : null;
        } else if ($name == 'value') {
            if ($this->_value !== null || $this->form == null || $this->form->getType() != 'add' || $this->default === null || $this->default === '') {
                return $this->_value;
            } else {
                return $this->default;
            }
        } else {
            return isset($this->_extends[$name]) ? $this->_extends[$name] : null;
        }
    }
获取属性值
@param $name
@param bool $p 包括原有属性
@return mixed|null