original_string: static public function get_licenses($param = null) {
          global $DB;
          if (empty($param) || !is_array($param)) {
              $param = array();
          }
          // get licenses by conditions
          if ($records = $DB->get_records('license', $param)) {
              return $records;
          } else {
              return array();
          }
      }
code: static public function get_licenses($param = null) {
          global $DB;
          if (empty($param) || !is_array($param)) {
              $param = array();
          }
          // get licenses by conditions
          if ($records = $DB->get_records('license', $param)) {
              return $records;
          } else {
              return array();
          }
      }
code_tokens: static public function get_licenses ( $ param = null ) { global $ DB ; if ( empty ( $ param ) || ! is_array ( $ param ) ) { $ param = array ( ) ; } // get licenses by conditions if ( $ records = $ DB -> get_records ( 'license' , $ param ) ) { return $ records ; } else { return array ( ) ; } }
docstring: Get license records
  @param mixed $param
  @return array
docstring_tokens: Get license records