Horde_Kolab_Format_Xml_Type_Base::checkMissing PHP Méthode

checkMissing() protected méthode

Validate that the parameter array contains all required parameters.
protected checkMissing ( string $key, array $params, string $attribute )
$key string The parameter name.
$params array The parameters.
$attribute string The attribute name.
    protected function checkMissing($key, $params, $attribute)
    {
        if (!isset($params[$key])) {
            throw new Horde_Kolab_Format_Exception(sprintf('Required parameter "%s" missing (attribute: %s)!', $key, $attribute));
        }
    }