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
c35d3af0
Commit
c35d3af0
authored
Dec 05, 2018
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add @since PHPDoc tag to recent method additions
parent
ce3f945e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
format.php
qa-include/app/format.php
+1
-0
posts.php
qa-include/app/posts.php
+1
-0
users.php
qa-include/app/users.php
+3
-0
No files found.
qa-include/app/format.php
View file @
c35d3af0
...
...
@@ -2361,6 +2361,7 @@ function qa_favorite_form($entitytype, $entityid, $favorite, $title)
* Format a number using the decimal point and thousand separator specified in the language files.
* If the number is compacted it is turned into a string such as 1.3k or 2.5m.
*
* @since 1.8.0
* @param integer $number Number to be formatted
* @param integer $decimals Amount of decimals to use (ignored if number gets shortened)
* @param bool $compact Whether the number can be shown as compact or not
...
...
qa-include/app/posts.php
View file @
c35d3af0
...
...
@@ -237,6 +237,7 @@ function qa_post_set_closed($questionid, $closed = true, $originalpostid = null,
/**
* Return whether the given question is closed. This check takes into account the do_close_on_select option which
* considers questions with a selected answer as closed.
* @since 1.8.2
* @param array $question
* @return bool
*/
...
...
qa-include/app/users.php
View file @
c35d3af0
...
...
@@ -518,6 +518,7 @@ if (QA_FINAL_EXTERNAL_USERS) {
* Return the URL to the $blobId with a stored size of $width and $height.
* Constrain the image to $size (width AND height)
*
* @since 1.8.0
* @param string $blobId The blob ID from the image
* @param int|null $size The resulting image's size. If omitted the original image size will be used. If the
* size is present it must be greater than 0
...
...
@@ -582,6 +583,7 @@ if (QA_FINAL_EXTERNAL_USERS) {
* the user's profile, 'local-default' for an avatar fetched locally from the default avatar blob ID, and NULL
* if the avatar could not be fetched from any of these sources
*
* @since 1.8.0
* @param int $flags The user's flags
* @param string|null $email The user's email
* @param string|null $blobId The blob ID for a locally stored avatar.
...
...
@@ -1401,6 +1403,7 @@ function qa_check_form_security_code($action, $value)
/**
* Return the URL for the Gravatar corresponding to $email, constrained to $size
*
* @since 1.8.0
* @param string $email The email of the Gravatar to return
* @param int|null $size The size of the Gravatar to return. If omitted the default size will be used
* @return string The URL to the Gravatar of the user
...
...
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