1 | <?php |
||
2 | |||
3 | |||
4 | namespace Soheilrt\AdobeConnectClient\Facades; |
||
5 | |||
6 | |||
7 | use Illuminate\Support\Facades\Facade; |
||
8 | use Soheilrt\AdobeConnectClient\Client\Contracts\ArrayableInterface as Arrayable; |
||
9 | use SplFileInfo; |
||
10 | use \Soheilrt\AdobeConnectClient\Client\Entities\SCO; |
||
0 ignored issues
–
show
|
|||
11 | |||
12 | /** |
||
13 | * @method static bool login(string $login, string $password) Login in the Service. |
||
14 | * @method static bool logout() Ends the service session |
||
15 | * @method static CommonInfo commonInfo(string $domain = '') Gets the Common Info |
||
16 | * @method static SCO scoInfo(int $scoId) Gets the info about a SCO |
||
17 | * @method static SCO scoCreate(Arrayable $sco) Create a SCO |
||
18 | * @method static bool scoUpdate(Arrayable $sco) Update a SCO |
||
19 | * @method static bool scoDelete(int $scoId) Delete a SCO or a Folder |
||
20 | * @method static SCO[] scoShortcuts(Arrayable $filter = null, Arrayable $sorter = null) Get SCO Shortcuts to SCO |
||
21 | * different types. |
||
22 | * @method static bool scoMove(int $scoId, int $folderId) Move the SCO to other Folder |
||
23 | * @method static SCO[] scoContents(int $scoId, Arrayable $filter = null, Arrayable $sorter = null) Get the SCO |
||
24 | * Contents from a folder or from other SCO |
||
25 | * @method static SCORecord[] listRecordings(int $folderId) Provides a list of recordings for a specified folder or SCO |
||
26 | * @method static Principal principalInfo(int $principalId) Gets the info about an user or group |
||
27 | * @method static Principal principalCreate(Arrayable $principal) Create a Principal. |
||
28 | * @method static bool principalUpdate(Arrayable $principal) Update a Principal. |
||
29 | * @method static bool principalDelete(int $principalId) Remove one principal, either user or group |
||
30 | * @method static Principal[] principalList(int $groupId = 0, Arrayable $filter = null, Arrayable $sorter = null) |
||
31 | * Provides a complete list of users and groups, including primary groups. |
||
32 | * @method static bool userUpdatePassword(int $userId, string $newPassword, string $oldPassword = '') Changes user’s |
||
33 | * password |
||
34 | * @method static bool groupMembershipUpdate(int $groupId, int $principalId, bool $isMember) Add or remove a principal |
||
35 | * from a group |
||
36 | * @method static bool permissionUpdate(Arrayable $permission) Updates the principal's permissions to access a SCO or |
||
37 | * the access mode if the acl-id is a Meeting |
||
38 | * @method static Principal[] permissionsInfo(int $aclId, Arrayable $filter = null, Arrayable $sorter = null) Get a list of |
||
39 | * principals who have permissions to act on a SCO, Principal or Account |
||
40 | * @method static Permission permissionInfoFromPrincipal(int $aclId, int $principalId) Get the Principal's permission |
||
41 | * in a SCO, Principal or Account |
||
42 | * @method static bool meetingFeatureUpdate(int $accountId, string $featureId, bool $enable) Set a feature |
||
43 | * @method static bool aclFieldUpdate(int $aclId, string $fieldId, mixed $value, Arrayable $extraParams = null) Updates |
||
44 | * the passed in Field for the specified ACL |
||
45 | * @method static bool recordingPasscode(int $scoId, string $passcode) Set the passcode on a Recording and turned into |
||
46 | * public |
||
47 | * @method static int|null scoUpload(int $folderId, string $resourceName, resource|SplFileInfo $file) Uploads a file |
||
48 | * and then builds the file |
||
49 | * @method static getSession() get current session |
||
50 | * @method static setSession($session) set session |
||
51 | */ |
||
52 | class Client extends Facade |
||
53 | { |
||
54 | protected static function getFacadeAccessor() |
||
55 | { |
||
56 | return \Soheilrt\AdobeConnectClient\Client\Client::class; |
||
57 | } |
||
58 | } |
||
59 |
Let?s assume that you have a directory layout like this:
and let?s assume the following content of
Bar.php
:If both files
OtherDir/Foo.php
andSomeDir/Foo.php
are loaded in the same runtime, you will see a PHP error such as the following:PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php
However, as
OtherDir/Foo.php
does not necessarily have to be loaded and the error is only triggered if it is loaded beforeOtherDir/Bar.php
, this problem might go unnoticed for a while. In order to prevent this error from surfacing, you must import the namespace with a different alias: