\n" . file_get_contents(dirname(__FILE__) .
'/stackphp_helper.js') . "\n\nStackPHP.APIKey = '" . API::$key . "';\nStackPHP.ClientID = " .
Auth::$client_id . ";\n";
}
/// Retrieves the contents of the helper CSS file as a string.
/**
* \return the string contents of the file
*
* This method should not be used in a production quality application. Instead, you
* should link to the CSS directly.
*/
public static function GetHelperCSS()
{
return "";
}
/// Creates a combobox output instance from the provided response.
/**
* \param $response an instance of the PagedResponse class
* \param $id_name the value to use for the id and name attribute of the element
* \return a ComboboxOutput object
*/
public static function CreateCombobox($response, $id_name=null)
{
return new ComboboxOutput($response, $id_name);
}
/// Creates a table for displaying data from the provided request.
/**
* \param $response an instance of the PagedResponse class
* \param $id_name the value to use for the id and name attribute of the element
* \return a TableOutput object
*/
public static function CreateTable($response, $id_name=null)
{
return new TableOutput($response, $id_name);
}
/// Displays a textbox with tools or information enabling the user to find their user ID.
/**
* \param $id the value to use for the ID and NAME attribute
* \param $site the site in which to search for the user's ID
* \param $current_selection the currently selected value (or an empty string if none)
* \return a string containing the HTML for the textbox
*/
public static function DisplayUserSelector($id, $site, $current_selection='')
{
$textbox_value = " ";
$textbox_value .= "";
$textbox_value .= '';
return $textbox_value;
}
}
endif;