From 2f150be115915c5ebd22a502a855c0a660bca167 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Dec 2005 21:09:40 +0000 Subject: [PATCH] Added visibility information to all the functions --- api.php | 24 ++++++++++++++++++++++ date.php | 6 ++++++ db_mysql.php | 22 ++++++++++++++++++++ functions.php | 22 ++++++++++++++++++++ kernel.php | 36 +++++++++++++++++++++++++++++++++ localize.php | 8 ++++++++ mail.php | 6 ++++++ printer.php | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ template.php | 18 +++++++++++++++++ template_fs.php | 4 ++++ xml.php | 12 +++++++++++ 11 files changed, 212 insertions(+) diff --git a/api.php b/api.php index 15a9f6d..195a8b1 100644 --- a/api.php +++ b/api.php @@ -167,6 +167,8 @@ class API /** * Sets a value, sanitizes it, and verifies it * + * @access public + * * @param string Field name * @param mixed Value * @param bool Do clean? @@ -206,6 +208,8 @@ class API * Sets the condition to use in the WHERE clause; if not passed, then it calculates it * from the REQ_AUTO field * + * @access public + * * @param string WHERE conditional bit */ function set_condition($condition = '') @@ -239,6 +243,8 @@ class API /** * Sets existing data into $values where it's not already present + * + * @access public */ function set_existing() { @@ -263,6 +269,8 @@ class API /** * Fetches a record based on the condition + * + * @access public */ function fetch() { @@ -287,6 +295,8 @@ class API /** * Inserts a record in the database + * + * @access public */ function insert() { @@ -308,6 +318,8 @@ class API /** * Updates a record in the database using the data in $vaues + * + * @access public */ function update() { @@ -331,6 +343,8 @@ class API /** * Deletes a record + * + * @access public */ function delete() { @@ -350,6 +364,8 @@ class API /** * Verifies that all required fields are set + * + * @access private */ function verify() { @@ -372,6 +388,8 @@ class API /** * Runs a pre- or post-action method for database commands * + * @access private + * * @param string Action to run */ function run_action_method($method) @@ -386,6 +404,8 @@ class API /** * Verify field: not a zero value + * + * @access protected */ function verify_nozero($field) { @@ -399,6 +419,8 @@ class API /** * Verify field: not empty + * + * @access protected */ function verify_noempty($field) { @@ -416,6 +438,8 @@ class API * system. Passing a name will cause the set, no arguments * will cause the get. * +* @access public +* * @param mixed Method name in callable form * * @return mixed Method name in callable form diff --git a/date.php b/date.php index a5d2b4b..afefdf3 100644 --- a/date.php +++ b/date.php @@ -97,6 +97,8 @@ class Date /** * Computes the total offset, taking into account all * the various options + * + * @access public */ function fetch_offset() { @@ -107,6 +109,8 @@ class Date /** * Formats a UNIX timestamp to a certain date format in the proper time zone * + * @access public + * * @param string Format of the date (same as PHP's date() function) * @param integer UNIX timestamp to format * @param bool Adjust the date to the user's language? @@ -126,6 +130,8 @@ class Date /** * Fetches an array of timezones for a text field as the value column * + * @access public + * * @param string Label text * @param string Name of the field * @param string Value of the field @@ -633,6 +673,8 @@ EOD; /** * Creates a table row with a