Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
53749f1e
Commit
53749f1e
authored
Dec 18, 2018
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPDoc update in app/favorites, app/limits, app/options and app/users
parent
5669d75e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
favorites.php
qa-include/app/favorites.php
+6
-6
limits.php
qa-include/app/limits.php
+5
-5
options.php
qa-include/app/options.php
+11
-11
users.php
qa-include/app/users.php
+0
-0
No files found.
qa-include/app/favorites.php
View file @
53749f1e
...
...
@@ -84,8 +84,8 @@ function qa_user_favorite_set($userid, $handle, $cookieid, $entitytype, $entityi
/**
* Returns content to set in $qa_content['q_list'] for a user's favorite $questions. Pre-generated
* user HTML in $usershtml.
* @param $questions
* @param $usershtml
* @param
array
$questions
* @param
array
$usershtml
* @return array
*/
function
qa_favorite_q_list_view
(
$questions
,
$usershtml
)
...
...
@@ -118,8 +118,8 @@ function qa_favorite_q_list_view($questions, $usershtml)
/**
* Returns content to set in $qa_content['ranking_users'] for a user's favorite $users. Pre-generated
* user HTML in $usershtml.
* @param $users
* @param $usershtml
* @param
array
$users
* @param
array
$usershtml
* @return array|null
*/
function
qa_favorite_users_view
(
$users
,
$usershtml
)
...
...
@@ -154,7 +154,7 @@ function qa_favorite_users_view($users, $usershtml)
/**
* Returns content to set in $qa_content['ranking_tags'] for a user's favorite $tags.
* @param $tags
* @param
array
$tags
* @return array
*/
function
qa_favorite_tags_view
(
$tags
)
...
...
@@ -181,7 +181,7 @@ function qa_favorite_tags_view($tags)
/**
* Returns content to set in $qa_content['nav_list_categories'] for a user's favorite $categories.
* @param $categories
* @param
array
$categories
* @return array
*/
function
qa_favorite_categories_view
(
$categories
)
...
...
qa-include/app/limits.php
View file @
53749f1e
...
...
@@ -167,7 +167,7 @@ function qa_is_ip_blocked()
/**
* Return an array of the clauses within $blockipstring, each of which can contain hyphens or asterisks
* @param $blockipstring
* @param
string
$blockipstring
* @return array
*/
function
qa_block_ips_explode
(
$blockipstring
)
...
...
@@ -216,9 +216,9 @@ function qa_block_ip_match($ip, $blockipclause)
/**
* Check if IP falls between two others.
* @param $ip
* @param $startip
* @param $endip
* @param
string
$ip
* @param
string
$startip
* @param
string
$endip
* @return bool
*/
function
qa_ip_between
(
$ip
,
$startip
,
$endip
)
...
...
@@ -294,7 +294,7 @@ function qa_report_write_action($userid, $cookieid, $action, $questionid, $answe
/**
* Take note for rate limits that a user and/or the requesting IP just performed an action.
* @param int $userid User performing the action.
* @param int
|null
$userid User performing the action.
* @param string $action One of the QA_LIMIT_* constants defined above.
* @return mixed
*/
...
...
qa-include/app/options.php
View file @
53749f1e
...
...
@@ -43,7 +43,7 @@ define('QA_PERMIT_SUPERS', 0);
/**
* Return an array [name] => [value] of settings for each option in $names.
* If any options are missing from the database, set them to their defaults
* @param $names
* @param
array
$names
* @return array
*/
function
qa_get_options
(
$names
)
...
...
@@ -96,8 +96,8 @@ function qa_get_options($names)
/**
* Return the value of option $name if it has already been loaded, otherwise return null
* (used to prevent a database query if it's not essential for us to know the option value)
* @param $name
* @return
* @param
string
$name
* @return
string
*/
function
qa_opt_if_loaded
(
$name
)
{
...
...
@@ -139,7 +139,7 @@ function qa_preload_options()
/**
* Load the options from the $results of the database selectspecs defined in qa_preload_options()
* @param $results
* @param
array
$results
* @return mixed
*/
function
qa_load_options_results
(
$results
)
...
...
@@ -161,8 +161,8 @@ function qa_load_options_results($results)
/**
* Set an option $name to $value (application level) in both cache and database, unless
* $todatabase=false, in which case set it in the cache only
* @param $name
* @param $value
* @param
string
$name
* @param
mixed|null
$value
* @param bool $todatabase
* @return mixed
*/
...
...
@@ -181,7 +181,7 @@ function qa_set_option($name, $value, $todatabase = true)
/**
* Reset the options in $names to their defaults
* @param $names
* @param
array
$names
* @return mixed
*/
function
qa_reset_options
(
$names
)
...
...
@@ -196,7 +196,7 @@ function qa_reset_options($names)
/**
* Return the default value for option $name
* @param $name
* @param
string
$name
* @return bool|mixed|string
*/
function
qa_default_option
(
$name
)
...
...
@@ -561,7 +561,7 @@ function qa_default_site_title()
/**
* Return an array of defaults for the $options parameter passed to qa_post_html_fields() and its ilk for posts of $basetype='Q'/'A'/'C'
* Set $full to true if these posts will be viewed in full, i.e. on a question page rather than a question listing
* @param $basetype
* @param
string
$basetype
* @param bool $full
* @return array|mixed
*/
...
...
@@ -601,8 +601,8 @@ function qa_post_html_defaults($basetype, $full = false)
* Return an array of options for post $post to pass in the $options parameter to qa_post_html_fields() and its ilk. Preferably,
* call qa_post_html_defaults() previously and pass its output in $defaults, to save excessive recalculation for each item in a
* list. Set $full to true if these posts will be viewed in full, i.e. on a question page rather than a question listing.
* @param $post
* @param $defaults
* @param
array
$post
* @param
array|null
$defaults
* @param bool $full
* @return array|mixed|null
*/
...
...
qa-include/app/users.php
View file @
53749f1e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment