X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FAttach.php;h=a008b3a4d36eb9c9474d973d10388f0bfbe34aaf;hb=d27576059670faf87f80eaae2b4560f85b5310fc;hp=e4d58c4b07b6c6a719ee3fc3d249b23aefde432a;hpb=e90ad0c1cd24d88d428965c20829d2912e2e20a0;p=friendica.git diff --git a/src/Model/Attach.php b/src/Model/Attach.php index e4d58c4b07..a008b3a4d3 100644 --- a/src/Model/Attach.php +++ b/src/Model/Attach.php @@ -1,6 +1,6 @@ getBasePath(), false); + $allfields = DI::dbaDefinition()->getAll(); $fields = array_keys($allfields['attach']['fields']); array_splice($fields, array_search('data', $fields), 1); return $fields; @@ -108,7 +107,7 @@ class Attach } /** - * Retrive a single record given the ID + * Retrieve a single record given the ID * * @param int $id Row id of the record * @@ -123,7 +122,7 @@ class Attach } /** - * Retrive a single record given the ID + * Retrieve a single record given the ID * * @param int $id Row id of the record * @@ -191,9 +190,9 @@ class Attach * @param string $filetype Mimetype. optional, default = '' * @param integer $filesize File size in bytes. optional, default = null * @param string $allow_cid Permissions, allowed contacts. optional, default = '' - * @param string $allow_gid Permissions, allowed groups. optional, default = '' - * @param string $deny_cid Permissions, denied contacts.optional, default = '' - * @param string $deny_gid Permissions, denied greoup.optional, default = '' + * @param string $allow_gid Permissions, allowed circles. optional, default = '' + * @param string $deny_cid Permissions, denied contacts. optional, default = '' + * @param string $deny_gid Permissions, denied circle. optional, default = '' * * @return boolean|integer Row id on success, False on errors * @throws \Friendica\Network\HTTPException\InternalServerErrorException