*/
class ParsedLogIterator implements \Iterator
{
- /** @var \Iterator */
+ /** @var ReversedFileReader */
private $reader;
/** @var ParsedLogLine current iterator value*/
/** @var string search term */
private $search = '';
-
- /**
- * @param ReversedFileReader $reader
- */
public function __construct(ReversedFileReader $reader)
{
$this->reader = $reader;
* Delete info from table and data from storage
*
* @param array $conditions Field condition(s)
- * @param array $options Options array, Optional
- *
- * @return boolean
*
* @throws \Exception
* @see \Friendica\Database\DBA::delete
/**
* Insert a new post entry
*
- * @param integer $uri_id
- * @param array $fields
* @return bool Success of the insert process
* @throws \Exception
*/
/**
* Retrieve a single record from the post-user-view view and returns it in an associative array
*
- * @param array $fields
- * @param array $condition
- * @param array $params
- * @param bool $user_mode true = post-user-view, false = post-view
* @return bool|array
* @throws \Exception
* @see DBA::select
* When the requested record is a reshare activity, the system fetches the reshared original post.
* Otherwise the function reacts similar to selectFirst
*
- * @param array $fields
- * @param array $condition
- * @param array $params
- * @param bool $user_mode true = post-user-view, false = post-view
* @return bool|array
* @throws \Exception
* @see DBA::select
/**
* Select rows from the post-user-view view and returns them as an array
*
- * @param array $selected Array of selected fields, empty for all
+ * @param array $fields Array of selected fields, empty for all
* @param array $condition Array of fields for condition
* @param array $params Array of several parameters
*
* Delete a row from the post table
*
* @param array $conditions Field condition(s)
- * @param array $options
- * - cascade: If true we delete records in other tables that depend on the one we're deleting through
- * relations (default: true)
*
* @return boolean was the delete successful?
* @throws \Exception
/**
* Insert a new post-activity entry
*
- * @param integer $uri_id
- * @param array $fields
- *
* @return bool success
*/
public static function insert(int $uri_id, string $source): bool
* Inserts new terms for the provided item ID based on the legacy item.file field BBCode content.
* Deletes all previous file terms for the same item ID.
*
- * @param integer $item_id item id
- * @param $files
* @return void
* @throws \Exception
*/
/**
* Fetch collections for a given contact
*
- * @param integer $cid
- * @param [type] $type
- * @param array $fields
* @return array
*/
public static function selectToArrayForContact(int $cid, int $type = self::FEATURED, array $fields = [])
use Friendica\Database\Database;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Model\Item;
use Friendica\Model\Post;
class Content
/**
* Insert a new post-content entry
*
- * @param integer $uri_id
- * @param array $fields
* @return bool success
* @throws \Exception
*/
{
/**
* Add a post to an inbox
- *
- * @param integer $uri_id
- * @param string $inbox
- * @param string $created
- * @param array %receivers
*/
public static function add(int $uri_id, int $uid, string $inbox, string $created, string $command, array $receivers)
{
/**
* Insert a new post origin entry
*
- * @param array $fields
* @return boolean was the insert successful?
* @throws \Exception
*/
use \BadMethodCallException;
use Friendica\Database\Database;
use Friendica\Database\DBA;
-use Friendica\Database\DBStructure;
use Friendica\DI;
class Thread
/**
* Insert a new post-thread entry
*
- * @param integer $uri_id
- * @param array $fields
* @return bool success
* @throws \Exception
*/
namespace Friendica\Model\Post;
-use \BadMethodCallException;
+use BadMethodCallException;
+use Exception;
use Friendica\Database\Database;
use Friendica\Database\DBA;
-use Friendica\Database\DBStructure;
use Friendica\DI;
class ThreadUser
/**
* Insert a new URI user entry
*
- * @param integer $uri_id
- * @param integer $uid
- * @param array $fields
* @return bool success
* @throws \Exception
*/
* Delete a row from the post-thread-user table
*
* @param array $conditions Field condition(s)
- * @param array $options
- * - cascade: If true we delete records in other tables that depend on the one we're deleting through
- * relations (default: true)
*
* @return boolean was the delete successful?
* @throws \Exception
namespace Friendica\Model\Post;
-use Friendica\Database\DBA;
-use \BadMethodCallException;
+use BadMethodCallException;
use Friendica\Database\Database;
+use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Protocol\Activity;
/**
* Insert a new post user entry
*
- * @param integer $uri_id
- * @param integer $uid
- * @param array $fields
* @return int ID of inserted post-user
* @throws \Exception
*/
/**
* Returns default profile for a given user id
*
- * @param integer User ID
+ * @param int $uid User ID
*
* @return array|bool Profile data or false on error
* @throws \Exception
/**
* Returns profile data for the contact owner
*
- * @param int $uid The User ID
- * @param array|bool $fields The fields to retrieve or false on error
+ * @param int $uid The User ID
+ * @param array $fields The fields to retrieve or false on error
*
* @return array Array of profile data
* @throws \Exception
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Factory\Api\Mastodon\Notification as NotificationFactory;
-use Friendica\Navigation\Notifications\Entity;
+use Friendica\Navigation\Notifications\Entity\Notification as EntityNotification;
use Friendica\Object\Api\Mastodon\Notification;
use Minishlink\WebPush\VAPID;
/**
* Select a subscription record exists
*
- * @param int $applicationid
- * @param int $uid
- * @param array $fields
* @return array|bool Array on success, false on failure
*/
public static function select(int $applicationid, int $uid, array $fields = [])
/**
* Prepare push notification
*
- * @param Notification $Notification
* @return void
*/
- public static function pushByNotification(Entity\Notification $notification)
+ public static function pushByNotification(EntityNotification $notification)
{
$type = NotificationFactory::getType($notification);