uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
gql
/
arguments
/
elements
/
User.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\gql\arguments\elements; use Craft; use craft\base\GqlInlineFragmentFieldInterface; use craft\elements\User as UserElement; use craft\gql\base\ElementArguments; use craft\gql\types\QueryArgument; use GraphQL\Type\Definition\Type; /** * Class User * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.3.0 */ class User extends ElementArguments { /** * @inheritdoc */ public static function getArguments(): array { return array_merge(parent::getArguments(), self::getContentArguments(), [ 'email' => [ 'name' => 'email', 'type' => Type::listOf(Type::string()), 'description' => 'Narrows the query results based on the users’ email addresses.', ], 'username' => [ 'name' => 'username', 'type' => Type::listOf(Type::string()), 'description' => 'Narrows the query results based on the users’ usernames.', ], 'fullName' => [ 'name' => 'fullName', 'type' => Type::listOf(Type::string()), 'description' => 'Narrows the query results based on the users’ full names.', ], 'firstName' => [ 'name' => 'firstName', 'type' => Type::listOf(Type::string()), 'description' => 'Narrows the query results based on the users’ first names.', ], 'lastName' => [ 'name' => 'lastName', 'type' => Type::listOf(Type::string()), 'description' => 'Narrows the query results based on the users’ last names.', ], 'hasPhoto' => [ 'name' => 'hasPhoto', 'type' => Type::boolean(), 'description' => 'Narrows the query results to only users that have (or don’t have) a user photo.', ], 'assetUploaders' => [ 'name' => 'assetUploaders', 'type' => Type::boolean(), 'description' => 'Narrows the query results based on whether the users have uploaded any assets.', ], 'authors' => [ 'name' => 'authors', 'type' => Type::boolean(), 'description' => 'Narrows the query results based on whether the users are listed as the author of any entries.', ], 'groupId' => [ 'name' => 'groupId', 'type' => Type::listOf(QueryArgument::getType()), 'description' => 'Narrows the query results based on the user group the users belong to, per the groups’ IDs.', ], 'group' => [ 'name' => 'group', 'type' => Type::listOf(QueryArgument::getType()), 'description' => 'Narrows the query results based on the user group the users belong to.', ], ]); } /** * @inheritdoc */ public static function getContentArguments(): array { $contentArguments = []; $contentFields = Craft::$app->getFields()->getLayoutByType(UserElement::class)->getCustomFields(); foreach ($contentFields as $contentField) { if (!$contentField instanceof GqlInlineFragmentFieldInterface) { $contentArguments[$contentField->handle] = $contentField->getContentGqlQueryArgumentType(); } } return array_merge(parent::getContentArguments(), $contentArguments); } /** * @inheritdoc */ public static function getDraftArguments(): array { return []; } /** * @inheritdoc */ public static function getRevisionArguments(): array { return []; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/gql/arguments/elements/User.php