original_string: public function EnabledApplications() {
        if (!is_array($this->_EnabledApplications)) {
           $EnabledApplications = Gdn::Config('EnabledApplications', array('Dashboard' => 'dashboard'));
           // Add some information about the applications to the array.
           foreach($EnabledApplications as $Name => $Folder) {
              $EnabledApplications[$Name] = array('Folder' => $Folder);
              //$EnabledApplications[$Name]['Version'] = Gdn::Config($Name.'.Version', '');
              $EnabledApplications[$Name]['Version'] = '';
              $EnabledApplications[$Name]['Index'] = $Name;
              // Get the application version from it's about file.
              $AboutPath = PATH_APPLICATIONS.'/'.strtolower($Name).'/settings/about.php';
              if (file_exists($AboutPath)) {
                 $ApplicationInfo = array();
                 include $AboutPath;
                 $EnabledApplications[$Name]['Version'] = GetValueR("$Name.Version", $ApplicationInfo, '');
              }
           }
           $this->_EnabledApplications = $EnabledApplications;
        }
  
        return $this->_EnabledApplications;
     }
code: public function EnabledApplications() {
        if (!is_array($this->_EnabledApplications)) {
           $EnabledApplications = Gdn::Config('EnabledApplications', array('Dashboard' => 'dashboard'));
           // Add some information about the applications to the array.
           foreach($EnabledApplications as $Name => $Folder) {
              $EnabledApplications[$Name] = array('Folder' => $Folder);
              //$EnabledApplications[$Name]['Version'] = Gdn::Config($Name.'.Version', '');
              $EnabledApplications[$Name]['Version'] = '';
              $EnabledApplications[$Name]['Index'] = $Name;
              // Get the application version from it's about file.
              $AboutPath = PATH_APPLICATIONS.'/'.strtolower($Name).'/settings/about.php';
              if (file_exists($AboutPath)) {
                 $ApplicationInfo = array();
                 include $AboutPath;
                 $EnabledApplications[$Name]['Version'] = GetValueR("$Name.Version", $ApplicationInfo, '');
              }
           }
           $this->_EnabledApplications = $EnabledApplications;
        }
  
        return $this->_EnabledApplications;
     }
code_tokens: public function EnabledApplications ( ) { if ( ! is_array ( $ this -> _EnabledApplications ) ) { $ EnabledApplications = Gdn :: Config ( 'EnabledApplications' , array ( 'Dashboard' => 'dashboard' ) ) ; // Add some information about the applications to the array. foreach ( $ EnabledApplications as $ Name => $ Folder ) { $ EnabledApplications [ $ Name ] = array ( 'Folder' => $ Folder ) ; //$EnabledApplications[$Name]['Version'] = Gdn::Config($Name.'.Version', ''); $ EnabledApplications [ $ Name ] [ 'Version' ] = '' ; $ EnabledApplications [ $ Name ] [ 'Index' ] = $ Name ; // Get the application version from it's about file. $ AboutPath = PATH_APPLICATIONS . '/' . strtolower ( $ Name ) . '/settings/about.php' ; if ( file_exists ( $ AboutPath ) ) { $ ApplicationInfo = array ( ) ; include $ AboutPath ; $ EnabledApplications [ $ Name ] [ 'Version' ] = GetValueR ( "$Name.Version" , $ ApplicationInfo , '' ) ; } } $ this -> _EnabledApplications = $ EnabledApplications ; } return $ this -> _EnabledApplications ; }
docstring: Gets an array of all of the enabled applications.
  @return array
docstring_tokens: Gets an array of all of the enabled applications .