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
929a312b
Commit
929a312b
authored
Dec 18, 2018
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPDoc update in app/cookies, app/format, app/mailing and app/search
parent
53749f1e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
cookies.php
qa-include/app/cookies.php
+4
-2
format.php
qa-include/app/format.php
+0
-0
mailing.php
qa-include/app/mailing.php
+5
-4
search.php
qa-include/app/search.php
+7
-7
No files found.
qa-include/app/cookies.php
View file @
929a312b
...
@@ -27,6 +27,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
...
@@ -27,6 +27,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
/**
/**
* Return the user identification cookie sent by the browser for this page request, or null if none
* Return the user identification cookie sent by the browser for this page request, or null if none
* @return string|null
*/
*/
function
qa_cookie_get
()
function
qa_cookie_get
()
{
{
...
@@ -39,6 +40,7 @@ function qa_cookie_get()
...
@@ -39,6 +40,7 @@ function qa_cookie_get()
/**
/**
* Return user identification cookie sent by browser if valid, or create a new one if not.
* Return user identification cookie sent by browser if valid, or create a new one if not.
* Either way, extend for another year (this is used when an anonymous post is created)
* Either way, extend for another year (this is used when an anonymous post is created)
* @return string
*/
*/
function
qa_cookie_get_create
()
function
qa_cookie_get_create
()
{
{
...
@@ -63,8 +65,8 @@ function qa_cookie_get_create()
...
@@ -63,8 +65,8 @@ function qa_cookie_get_create()
/**
/**
* Called after a database write $action performed by a user identified by $cookieid,
* Called after a database write $action performed by a user identified by $cookieid,
* relating to $questionid, $answerid and/or $commentid
* relating to $questionid, $answerid and/or $commentid
* @param $cookieid
* @param
string
$cookieid
* @param $action
* @param
string
$action
*/
*/
function
qa_cookie_report_action
(
$cookieid
,
$action
)
function
qa_cookie_report_action
(
$cookieid
,
$action
)
{
{
...
...
qa-include/app/format.php
View file @
929a312b
This diff is collapsed.
Click to expand it.
qa-include/app/mailing.php
View file @
929a312b
...
@@ -120,10 +120,10 @@ function qa_mailing_perform_step()
...
@@ -120,10 +120,10 @@ function qa_mailing_perform_step()
/**
/**
* Send a single message from the mailing, to $userid with $handle and $email.
* Send a single message from the mailing, to $userid with $handle and $email.
* Pass the user's existing $emailcode if there is one, otherwise a new one will be set up
* Pass the user's existing $emailcode if there is one, otherwise a new one will be set up
* @param $userid
* @param
mixed
$userid
* @param $handle
* @param
string
$handle
* @param $email
* @param
string
$email
* @param $emailcode
* @param
string
$emailcode
* @return bool
* @return bool
*/
*/
function
qa_mailing_send_one
(
$userid
,
$handle
,
$email
,
$emailcode
)
function
qa_mailing_send_one
(
$userid
,
$handle
,
$email
,
$emailcode
)
...
@@ -152,6 +152,7 @@ function qa_mailing_send_one($userid, $handle, $email, $emailcode)
...
@@ -152,6 +152,7 @@ function qa_mailing_send_one($userid, $handle, $email, $emailcode)
/**
/**
* Return a message describing current progress in the mailing
* Return a message describing current progress in the mailing
* @return string|null
*/
*/
function
qa_mailing_progress_message
()
function
qa_mailing_progress_message
()
{
{
...
...
qa-include/app/search.php
View file @
929a312b
...
@@ -30,13 +30,13 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
...
@@ -30,13 +30,13 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
* to get absolute URLs for the results and $fullcontent if the results should include full post content. This calls
* to get absolute URLs for the results and $fullcontent if the results should include full post content. This calls
* through to the chosen search module, and performs all the necessary post-processing to supplement the results for
* through to the chosen search module, and performs all the necessary post-processing to supplement the results for
* display online or in an RSS feed.
* display online or in an RSS feed.
* @param $query
* @param
string
$query
* @param $start
* @param
int
$start
* @param $count
* @param
int
$count
* @param $userid
* @param
mixed
$userid
* @param $absoluteurls
* @param
bool
$absoluteurls
* @param $fullcontent
* @param
bool
$fullcontent
* @return
* @return
array
*/
*/
function
qa_get_search_results
(
$query
,
$start
,
$count
,
$userid
,
$absoluteurls
,
$fullcontent
)
function
qa_get_search_results
(
$query
,
$start
,
$count
,
$userid
,
$absoluteurls
,
$fullcontent
)
{
{
...
...
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