@@ 726-740 (lines=15) @@ | ||
723 | } |
|
724 | } |
|
725 | ||
726 | function getDef($key, $values = null) { |
|
727 | $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key; |
|
728 | ||
729 | if ( is_array($values) ) { |
|
730 | $keys = array_keys($values); |
|
731 | ||
732 | foreach ( $keys as &$k ) { |
|
733 | $k = ':' . $k; |
|
734 | } |
|
735 | ||
736 | $def = str_replace($keys, array_values($values), $def); |
|
737 | } |
|
738 | ||
739 | return $def; |
|
740 | } |
|
741 | ||
742 | function getDirectoryContents($base, &$result = array()) { |
|
743 | foreach ( scandir($base) as $file ) { |
@@ 780-794 (lines=15) @@ | ||
777 | } |
|
778 | } |
|
779 | ||
780 | function getDef($key, $values = null) { |
|
781 | $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key; |
|
782 | ||
783 | if ( is_array($values) ) { |
|
784 | $keys = array_keys($values); |
|
785 | ||
786 | foreach ( $keys as &$k ) { |
|
787 | $k = ':' . $k; |
|
788 | } |
|
789 | ||
790 | $def = str_replace($keys, array_values($values), $def); |
|
791 | } |
|
792 | ||
793 | return $def; |
|
794 | } |
|
795 | ||
796 | function getDirectoryContents($base, &$result = array()) { |
|
797 | foreach ( scandir($base) as $file ) { |