aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nb-no/developer_function_primer.bb
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2014-06-24 20:51:22 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2014-06-24 20:51:22 +0200
commitc74e680ac0404277b9c7af5650ebe10c997e97ad (patch)
treebf29959449cc95e8b09bf463bbf1bbb1c601bcce /doc/nb-no/developer_function_primer.bb
parent19bc9b53c9d1495e5a09740a3f54d200fbf96e81 (diff)
downloadvolse-hubzilla-c74e680ac0404277b9c7af5650ebe10c997e97ad.tar.gz
volse-hubzilla-c74e680ac0404277b9c7af5650ebe10c997e97ad.tar.bz2
volse-hubzilla-c74e680ac0404277b9c7af5650ebe10c997e97ad.zip
Removed docs that were not translated
Diffstat (limited to 'doc/nb-no/developer_function_primer.bb')
-rw-r--r--doc/nb-no/developer_function_primer.bb45
1 files changed, 0 insertions, 45 deletions
diff --git a/doc/nb-no/developer_function_primer.bb b/doc/nb-no/developer_function_primer.bb
deleted file mode 100644
index 8a41c81f4..000000000
--- a/doc/nb-no/developer_function_primer.bb
+++ /dev/null
@@ -1,45 +0,0 @@
-[b]Red development - some useful basic functions[/b]
-
-[b]get_account_id()[/b]
-
-Returns numeric account_id if authenticated or 0. It is possible to be authenticated and not connected to a channel.
-
-[b]local_user()[/b]
-
-Returns authenticated numeric channel_id if authenticated and connected to a channel or 0. Sometimes referred to as $uid in the code.
-
-[b]remote_user()[/b]
-
-Returns authenticated string hash of Red global identifier, if authenticated via remote auth, or an empty string.
-
-[b]get_app()[/b]
-
-Returns the global app structure ($a).
-
-[b]App::get_observer()[/b]
-
-(App:: is usually assigned to the global $a), so $a-&gt;get_observer() or get_app()-&gt;get_observer() - returns an xchan structure representing the current viewer if authenticated (locally or remotely).
-
-[b]get_config($family,$key), get_pconfig($uid,$family,$key)[/b]
-
-Returns the config setting for $family and $key or false if unset.
-
-[b] set_config($family,$key,$value), set_pconfig($uid,$family,$key,$value)[/b]
-
-Sets the value of config setting for $family and $key to $value. Returns $value. The config versions operate on system-wide settings. The pconfig versions get/set the values for a specific integer uid (channel_id).
-
-[b]dbesc()[/b]
-
-Always escape strings being used in DB queries. This function returns the escaped string. Integer DB parameters should all be proven integers by wrapping with intval()
-
-[b]q($sql,$var1...)[/b]
-
-Perform a DB query with the SQL statement $sql. printf style arguments %s and %d are replaced with variable arguments, which should each be appropriately dbesc() or intval(). SELECT queries return an array of results or false if SQL or DB error. Other queries return true if the command was successful or false if it wasn't.
-
-[b]t($string)[/b]
-
-Returns the translated variant of $string for the current language or $string (default 'en' language) if the language is unrecognised or a translated version of the string does not exist.
-
-[b]x($var), $x($array,$key)[/b]
-
-Shorthand test to see if variable $var is set and is not empty. Tests vary by type. Returns false if $var or $key is not set. If variable is set, returns 1 if has 'non-zero' value, otherwise returns 0. -- e.g. x('') or x(0) returns 0; \ No newline at end of file