mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float.
This commit is contained in:
@@ -14,7 +14,11 @@ $comments_title = LAN_PLUGIN_DOWNLOAD_NAME;
|
||||
$comments_type_id = '2';
|
||||
$comments_return['download'] = "d.download_id, d.download_name";
|
||||
$comments_table['download'] = "LEFT JOIN #download AS d ON c.comment_type=2 AND d.download_id = c.comment_item_id";
|
||||
function com_search_2($row) {
|
||||
/**
|
||||
* @param $row
|
||||
* @return array
|
||||
*/
|
||||
function com_search_2($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['comment_datestamp'], "long");
|
||||
$res['link'] = "download.php?view.".$row['download_id'];
|
||||
|
@@ -14,7 +14,11 @@ $comments_title = ADLAN_0;
|
||||
$comments_type_id = 0;
|
||||
$comments_return['news'] = "n.news_title";
|
||||
$comments_table['news'] = "LEFT JOIN #news AS n ON c.comment_type=0 AND n.news_id = c.comment_item_id";
|
||||
function com_search_0($row) {
|
||||
/**
|
||||
* @param $row
|
||||
* @return array
|
||||
*/
|
||||
function com_search_0($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['comment_datestamp'], "long");
|
||||
$res['link'] = "comment.php?comment.news.".$row['comment_item_id'];
|
||||
|
@@ -20,7 +20,11 @@ $comments_title = LAN_418;
|
||||
$comments_type_id = 'page';
|
||||
$comments_return['page'] = "cp.page_id, cp.page_title";
|
||||
$comments_table['page'] = "LEFT JOIN #page AS cp ON c.comment_type='page' AND cp.page_id = c.comment_item_id";
|
||||
function com_search_page($row) {
|
||||
/**
|
||||
* @param $row
|
||||
* @return array
|
||||
*/
|
||||
function com_search_page($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['comment_datestamp'], "long");
|
||||
$res['link'] = "page.php?".$row['page_id'];
|
||||
|
@@ -14,7 +14,11 @@ $comments_title = ADLAN_0;
|
||||
$comments_type_id = 'profile';
|
||||
$comments_return['user'] = "u.user_name";
|
||||
$comments_table['user'] = "LEFT JOIN #user AS u ON c.comment_type='profile' AND u.user_id = c.comment_item_id";
|
||||
function com_search_profile($row) {
|
||||
/**
|
||||
* @param $row
|
||||
* @return array
|
||||
*/
|
||||
function com_search_profile($row) {
|
||||
global $con;
|
||||
$datestamp = $con -> convert_date($row['comment_datestamp'], "long");
|
||||
$res['link'] = "user.php?id.".$row['comment_item_id'];
|
||||
|
@@ -57,7 +57,11 @@ $ps = $sch -> parsesearch($table, $return_fields, $search_fields, $weights, 'sea
|
||||
$text .= $ps['text'];
|
||||
$results = $ps['results'];
|
||||
|
||||
function search_comment($row) {
|
||||
/**
|
||||
* @param $row
|
||||
* @return false|mixed|void
|
||||
*/
|
||||
function search_comment($row) {
|
||||
if (is_callable('com_search_'.$row['comment_type'])) {
|
||||
return call_user_func('com_search_'.$row['comment_type'], $row);
|
||||
}
|
||||
|
Reference in New Issue
Block a user