diff options
author | ken restivo <ken@restivo.org> | 2015-11-03 12:24:29 -0800 |
---|---|---|
committer | ken restivo <ken@restivo.org> | 2015-11-03 12:24:29 -0800 |
commit | 288697cda28712c6d02f36d2882024f1d6d97d7c (patch) | |
tree | a6157c9bbb3af94cac3c4e0352096074e836ff48 /doc | |
parent | d1aa67238833542d7d3bc5e74992b70eeda2de63 (diff) | |
download | volse-hubzilla-288697cda28712c6d02f36d2882024f1d6d97d7c.tar.gz volse-hubzilla-288697cda28712c6d02f36d2882024f1d6d97d7c.tar.bz2 volse-hubzilla-288697cda28712c6d02f36d2882024f1d6d97d7c.zip |
Add documentation for argv/argc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/developers.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/developers.bb b/doc/developers.bb index e9dddc695..6f7752577 100644 --- a/doc/developers.bb +++ b/doc/developers.bb @@ -64,6 +64,8 @@ In the interests of consistency we adopt the following code styling. We may acce [li] Generally speaking, opening braces go on the same line as the thing which opens the brace. They are the last character on the line. Closing braces are on a line by themselves. [/li]
+[li] Some functions take arguments in argc/argv style like main() in C or function args in bash or Perl. Urls are broken up within a module. e.g, given "http://example.com/module/arg1/arg2", then $this->argc will be 3 (integer) and $this->argv will contain: [0] => 'module', [1] => 'arg1', [2] => 'arg2'. There will always be one argument. If provided a naked domain URL, $this->argv[0] is set to "home".[/li]
+
[b]See Also[/b]
[zrl=[baseurl]/help/sql_conventions]SQL Conventions[/zrl]
|