Horde_Prefs_Identity::init PHP Метод

init() публичный Метод

Creates a default identity if none exists yet and sets the preferences up if the identities are locked.
public init ( )
    public function init()
    {
        if (!is_array($this->_identities) || count($this->_identities) <= 0) {
            foreach (array_keys($this->_prefnames) as $key) {
                $identity[$key] = $this->_prefs->getValue($key);
            }
            if (empty($identity['id'])) {
                $identity['id'] = Horde_Prefs_Translation::t("Default Identity");
            }
            $this->_identities = array($identity);
            $this->verify(0);
        }
    }