src/ReadlineTemplate/ReadlineTemplate.php
/**
     * Cecks if all dependencies for the element are satisfied
     * @param array $readerKeyMapping An array which contains the dependency key and the name of the used {@see DataReader}
     * @param \DOMElement $element the element which dependencies should be checked
     * @param array $data An array containing the currently enters configuration
     * @return boolean Returns true if the dependencies for the element are satisfied
     */
Cecks if all dependencies for the element are satisfied
@param array $readerKeyMapping An array which contains the dependency key and the name of the used  DataReader
@param \DOMElement $element the element which dependencies should be checked
@param array $data An array containing the currently enters configuration
@return boolean Returns true if the dependencies for the element are satisfied
Cecks if all dependencies for the element are satisfied @param array $readerKeyMapping An array which contains the dependency key and the name of the used DataReader @param \ DOMElement $element the element which dependencies should be checked @param array $data An array containing the currently enters configuration @return boolean Returns true if the dependencies for the element are satisfied
private function checkDepends(array $readerKeyMapping, \DOMElement $element, array $data) {
        if ($element->hasAttribute("depends")) {
            $depKey = $element->getAttribute("depends");
            if (isset($data[$depKey]) && isset($readerKeyMapping[$depKey])) {
                if ($element->hasAttribute("depends-equals")) {
                    return $this->getReader($readerKeyMapping[$depKey])->equalsDependency($element->getAttribute("depends-equals"), $data[$element->getAttribute("depends")]);
                } else {
                    return !in_array($data[$depKey], array(false, null, ""));
                }
            } else {
                return false;
            }
        } else {
            return true;
        }
    }
private function checkDepends ( array $ readerKeyMapping , \ DOMElement $ element , array $ data ) { if ( $ element -> hasAttribute ( " depends " ) ) { $ depKey = $ element -> getAttribute ( " depends " ) ; if ( isset ( $ data [ $ depKey ] ) && isset ( $ readerKeyMapping [ $ depKey ] ) ) { if ( $ element -> hasAttribute ( " depends-equals " ) ) { return $ this -> getReader ( $ readerKeyMapping [ $ depKey ] ) -> equalsDependency ( $ element -> getAttribute ( " depends-equals " ) , $ data [ $ element -> getAttribute ( " depends " ) ] ) ; } else { return ! in_array ( $ data [ $ depKey ] , array ( false , null , " " ) ) ; } } else { return false ; } } else { return true ; } }
Cecks if all dependencies for the element are satisfied
 @param array $readerKeyMapping An array which contains the dependency key and the name of the used {@see DataReader}
 @param \DOMElement $element the element which dependencies should be checked
 @param array $data An array containing the currently enters configuration
 @return boolean Returns true if the dependencies for the element are satisfied
Cecks if all dependencies for the element are satisfied @param array $readerKeyMapping An array which contains the dependency key and the name of the used { @see DataReader } @param \ DOMElement $element the element which dependencies should be checked @param array $data An array containing the currently enters configuration @return boolean Returns true if the dependencies for the element are satisfied