<?php
/**
- * @file include/dir.php
+ * @file include/DirSearch.php
+ * @brief This file includes the DirSearch class with directory related functions
*/
* *
* @param string $search Name or nick
* @param string $mode Search mode
- * @return array
+ * @return array with search results
*/
public static function global_search_by_name($search, $mode = '') {
intval(local_user()), dbesc(CONTACT_IS_SHARING), dbesc(CONTACT_IS_FRIEND),
dbesc(NETWORK_DFRN), dbesc($ostatus), dbesc($diaspora),
dbesc(escape_tags($search)), dbesc(escape_tags($search)));
+
return $results;
}
* @param string $s
* @param boolean $sample
*
- * @return string
+ * @return string HML Output of the Smilie
*/
public static function replace($s, $sample = false) {
if(intval(get_config('system','no_smilies'))
* @brief expand <3333 to the correct number of hearts
*
* @param string $x
- * @return string
+ * @return string HTML Output
+ *
+ * @todo: Rework because it doesn't work correctly
*/
private function preg_heart($x) {
if(strlen($x[1]) == 1)
* @brief Searching for global contacts for autocompletion
*
* @param App $a
- * @return array
+ * @return array with the search results
*/
function navbar_complete(&$a) {
}
}
return;
-}
\ No newline at end of file
+}
* and adds an application/json HTTP header to the output.
* After finishing the process is getting killed.
*
- * @param array $x
+ * @param array $x The input content
*/
function json_return_and_die($x) {
header("content-type: application/json");
json_return_and_die($results);
}
else {
- return smilies('',true);
+ return Smilies::replace('',true);
}
}