diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-09-13 18:29:10 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-09-14 19:06:28 +1200 |
commit | 36aa89d6959d0d03f3fe3c769f867f314aba8bf9 (patch) | |
tree | 31c0405c8d5d2bb2bc56b65db13fa1a65bc44fc6 | |
parent | 61d5d51cf55909e8fa2b4a362b47741a9cde25ae (diff) |
many doxygen comments added
-rw-r--r-- | install.php | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/install.php b/install.php index 9d59f25b9..787edb20f 100644 --- a/install.php +++ b/install.php @@ -224,6 +224,13 @@ function main() } } +/** + * checks if an external libary is present + * + * @param string $external_library Name of library + * + * @return boolean indicates if library present + */ function haveExternalLibrary($external_library) { if (isset($external_library['include']) && ! include_once $external_library['include'] ) { @@ -238,6 +245,11 @@ function haveExternalLibrary($external_library) return true; } +/** + * Check if all is ready for installation + * + * @return void + */ function checkPrereqs() { $pass = true; @@ -295,6 +307,13 @@ function checkPrereqs() return $pass; } +/** + * Checks if a php extension is both installed and loaded + * + * @param string $name of extension to check + * + * @return boolean whether extension is installed and loaded + */ function checkExtension($name) { if (!extension_loaded($name)) { @@ -305,6 +324,11 @@ function checkExtension($name) return true; } +/** + * Show list of libraries + * + * @return void + */ function showLibs() { global $external_libraries; @@ -356,9 +380,9 @@ E_O_T; foreach($present_libraries as $library) { echo '<li>'; - if($library['url']){ + if ($library['url']) { echo '<a href=">'.$library['url'].'">'.htmlentities($library['name']).'</a>'; - }else{ + } else { echo htmlentities($library['name']); } echo '</li>'; |