idx
int64
0
60.3k
question
stringlengths
92
4.62k
target
stringlengths
7
635
43,400
public function getPathObject ( $ name ) { if ( $ this -> callerNotSelf ( ) ) { Deprecated :: method ( 3.3 , 'Use Bolt\Filesystem (recommended) or PathResolver::resolve instead.' ) ; } $ name = str_replace ( '\\' , '/' , $ name ) ; $ parts = [ ] ; if ( strpos ( $ name , '/' ) !== false ) { $ parts = explode ( '/' , $ n...
Gets a path as a PathInterface .
43,401
public function hasPath ( $ name ) { Deprecated :: method ( 3.3 , PathResolver :: class ) ; if ( strpos ( $ name , '/' ) !== false ) { $ parts = explode ( '/' , $ name ) ; $ name = array_shift ( $ parts ) ; } return array_key_exists ( $ name , $ this -> paths ) || array_key_exists ( $ name . 'path' , $ this -> paths ) ...
Checks if the given name has a path associated with it .
43,402
public function setUrl ( $ name , $ value ) { if ( $ this -> callerNotSelfOrChild ( ) ) { Deprecated :: method ( 3.3 , 'Use UrlGenerator or Asset Packages instead.' ) ; } $ this -> urls [ $ name ] = $ value ; }
Set a URL path definition .
43,403
public function getUrl ( $ name , $ includeBasePath = true ) { if ( $ this -> callerNotSelfOrPathsProxy ( ) ) { Deprecated :: method ( 3.3 , 'Use UrlGenerator or Asset Packages instead.' ) ; } if ( ( $ name === 'canonical' || $ name === 'canonicalurl' ) && isset ( $ this -> app [ 'canonical' ] ) ) { if ( $ url = $ this...
Get a URL path definition .
43,404
public function getRequest ( $ name ) { if ( $ this -> callerNotSelfOrPathsProxy ( ) ) { Deprecated :: method ( 3.3 , 'Use Request object in request cycle instead.' ) ; } if ( ! $ this -> requestInitialized && in_array ( $ name , [ 'canonical' , 'protocol' , 'hostname' ] ) ) { $ this -> initializeRequest ( $ this -> ap...
Get a request parameter .
43,405
public function getPaths ( ) { Deprecated :: method ( 3.0 ) ; if ( $ this -> pathsProxy === null ) { $ this -> pathsProxy = new PathsProxy ( $ this ) ; } return $ this -> pathsProxy ; }
Just don t use this .
43,406
public function initializeRequest ( Application $ app , Request $ request = null ) { if ( $ request === null ) { $ request = $ app [ 'request_stack' ] -> getCurrentRequest ( ) ? : Request :: createFromGlobals ( ) ; } $ canonical = $ app [ 'config' ] -> get ( 'general/canonical' , $ request -> server -> get ( 'HTTP_HOST...
Takes a Request object and uses it to initialize settings that depend on the request .
43,407
public function initializeConfig ( ) { $ this -> configInitialized = true ; $ this -> setThemePath ( $ this -> app [ 'config' ] -> get ( 'general' ) ) ; $ theme = $ this -> app [ 'config' ] -> get ( 'theme' ) ; if ( isset ( $ theme [ 'template_directory' ] ) ) { $ this -> setPath ( 'templatespath' , $ this -> getPath (...
Takes a loaded config array and uses it to initialize settings that depend on it .
43,408
public function setThemePath ( $ generalConfig ) { $ themeDir = isset ( $ generalConfig [ 'theme' ] ) ? '/' . $ generalConfig [ 'theme' ] : '' ; $ themePath = isset ( $ generalConfig [ 'theme_path' ] ) ? $ generalConfig [ 'theme_path' ] : '/theme' ; $ themeUrl = isset ( $ generalConfig [ 'theme_path' ] ) ? $ generalCon...
This currently gets special treatment because of the processing order . The theme path is needed before the app has constructed so this is a shortcut to allow the Application constructor to pre - provide a theme path .
43,409
public function getVerifier ( ) { Deprecated :: method ( 3.3 ) ; if ( ! $ this -> verifier ) { $ verifier = new LowlevelChecks ( $ this ) ; $ this -> verifier = $ verifier ; } return $ this -> verifier ; }
Get the LowlevelChecks object .
43,410
public function findRelativePath ( $ frompath , $ topath ) { Deprecated :: method ( 3.3 ) ; $ filesystem = new Filesystem ( ) ; $ relative = $ filesystem -> makePathRelative ( $ topath , $ frompath ) ; return $ relative ; }
Find the relative file system path between two file system paths .
43,411
public function get ( $ label = null ) { if ( $ label && array_key_exists ( $ label , $ this -> results ) ) { return $ this -> results [ $ label ] ; } $ results = [ ] ; foreach ( $ this -> results as $ v ) { if ( is_array ( $ v ) ) { $ results = array_merge ( $ results , $ v ) ; } else { $ results [ ] = $ v ; } } retur...
Allows retrieval of a set or results if a label has been used to store results then passing the label as a parameter returns just that set of results .
43,412
public function getSelectList ( array $ contentType , $ order , $ neededFields = [ ] ) { $ query = $ this -> querySelectList ( $ contentType , $ order , $ neededFields ) ; return $ query -> execute ( ) -> fetchAll ( ) ; }
Fetches details on records for select lists .
43,413
public function querySelectList ( array $ contentType , $ order = null , $ neededFields = [ ] ) { if ( strpos ( $ order , '-' ) === 0 ) { $ direction = 'DESC' ; $ order = ltrim ( $ order , '-' ) ; } else { $ direction = 'ASC' ; } array_unshift ( $ neededFields , 'id' , $ this -> getTitleColumnName ( $ contentType ) . '...
Build the query for a record select list .
43,414
public function setLegacyService ( ContentLegacyService $ service ) { $ this -> legacy = $ service ; $ this -> event ( ) -> addListener ( StorageEvents :: PRE_HYDRATE , [ $ this , 'hydrateLegacyHandler' ] ) ; }
Set the legacy Content service object .
43,415
public function hydrateLegacyHandler ( HydrationEvent $ event ) { $ entity = $ event -> getArgument ( 'entity' ) ; if ( $ entity instanceof Content ) { $ entity -> setLegacyService ( $ this -> legacy ) ; } }
Hydration handler for the legacy object .
43,416
public function check ( Request $ request ) { $ check = $ this -> app [ 'schema' ] -> check ( ) ; $ context = [ 'changes' => null , 'check' => $ check , 'debug' => $ request -> query -> has ( 'debug' ) , 'alters' => $ this -> app [ 'schema.comparator' ] -> getAlters ( ) , 'creates' => $ this -> app [ 'schema.comparator...
Check the database for missing tables and columns .
43,417
public function updateResult ( ) { $ output = $ this -> session ( ) -> get ( 'dbupdate_result' , [ ] ) ; $ context = [ 'changes' => $ output , 'check' => null , 'debug' => false , 'alters' => null , 'creates' => null , 'diffs' => null , ] ; return $ this -> render ( '@bolt/dbcheck/dbcheck.twig' , $ context ) ; }
Show the result of database updates .
43,418
public function makelink ( ) { if ( $ this -> link ) { return $ this -> link ; } $ pageid = static :: makeParameterId ( $ this -> for ) ; $ parameters = $ this -> app [ 'request' ] -> query -> all ( ) ; if ( array_key_exists ( $ pageid , $ parameters ) ) { unset ( $ parameters [ $ pageid ] ) ; } else { unset ( $ parame...
Used for calling from template to build up right paginated URL link .
43,419
public function addGlobals ( array $ globals ) { foreach ( $ globals as $ name => $ value ) { $ this -> addGlobalContext ( $ name , $ value ) ; } }
Adds globals to the template .
43,420
public function compile ( ) { if ( $ this -> stopwatch ) { $ this -> stopwatch -> start ( 'bolt.render' , 'template' ) ; } $ output = $ this -> template -> render ( $ this -> context ) ; $ this -> setContent ( $ output ) ; $ this -> compiled = true ; if ( $ this -> stopwatch ) { $ this -> stopwatch -> stop ( 'bolt.rend...
Compiles the template using the context .
43,421
protected function sort ( array $ assets ) { array_walk ( $ assets , function ( & $ v , $ k ) { $ v = [ $ v -> getPriority ( ) , $ k , $ v ] ; } ) ; sort ( $ assets ) ; array_walk ( $ assets , function ( & $ v ) { $ v = $ v [ 2 ] ; } ) ; return $ assets ; }
Do a Schwartzian Transform for stable sort .
43,422
public function getChangeLogQuery ( array $ options ) { $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> select ( '*' ) ; $ this -> setLimitOrder ( $ qb , $ options ) ; return $ qb ; }
Build the query to get content changelog entries for all content types .
43,423
public function countChangeLog ( ) { Deprecated :: method ( 3.3 , 'Use count() instead.' ) ; $ query = $ this -> countChangeLogQuery ( ) ; return $ this -> getCount ( $ query -> execute ( ) -> fetch ( ) ) ; }
Get a count of change log entries .
43,424
public function getChangeLogByContentType ( $ contentType , array $ options = [ ] ) { $ query = $ this -> getChangeLogByContentTypeQuery ( $ contentType , $ options ) ; return $ this -> findWith ( $ query ) ; }
Get content changelog entries by content type .
43,425
public function getChangeLogByContentTypeQuery ( $ contentType , array $ options ) { $ alias = $ this -> getAlias ( ) ; $ contentTableName = $ this -> em -> getRepository ( $ contentType ) -> getTableName ( ) ; $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> select ( "$alias.*, $alias.title" ) -> leftJoin ( $ alias ,...
Build query to get content changelog entries by ContentType .
43,426
public function getChangeLogEntry ( $ contentType , $ contentId , $ id , $ cmpOp ) { if ( ! in_array ( $ cmpOp , [ '=' , '<' , '>' ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid comparison operator: %s' , $ cmpOp ) ) ; } $ query = $ this -> getChangeLogEntryQuery ( $ contentType , $ contentId , $ id ...
Get one changelog entry from the database .
43,427
public function getChangeLogEntryQuery ( $ contentType , $ contentId , $ id , $ cmpOp ) { $ alias = $ this -> getAlias ( ) ; $ contentTypeTableName = $ this -> em -> getRepository ( $ contentType ) -> getTableName ( ) ; $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> select ( "$alias.*" ) -> leftJoin ( $ alias , $ co...
Build query to get one changelog entry from the database .
43,428
protected function setLimitOrder ( QueryBuilder $ query , array $ options ) { if ( isset ( $ options [ 'order' ] ) ) { $ query -> orderBy ( $ options [ 'order' ] , isset ( $ options [ 'direction' ] ) ? $ options [ 'direction' ] : null ) ; } if ( isset ( $ options [ 'limit' ] ) ) { $ query -> setMaxResults ( ( int ) ( $...
Conditionally add LIMIT and ORDER BY to a QueryBuilder query .
43,429
protected function setWhere ( QueryBuilder $ query , $ contentType , array $ options ) { $ where = $ query -> expr ( ) -> andX ( ) -> add ( $ query -> expr ( ) -> eq ( 'contenttype' , ':contenttype' ) ) ; if ( isset ( $ options [ 'contentid' ] ) || isset ( $ options [ 'id' ] ) ) { if ( isset ( $ options [ 'contentid' ]...
Set any required WHERE clause on a QueryBuilder .
43,430
public function get ( $ request , $ base = 'http://loripsum.net/api/' ) { $ uri = $ base . ltrim ( $ request , '/' ) ; return $ this -> client -> get ( $ uri , [ 'timeout' => 10 ] ) -> getBody ( ) ; }
Fetches the content from the service .
43,431
public function getTableName ( $ name ) { $ tableName = null ; if ( isset ( $ this -> app [ 'schema.tables' ] [ $ name ] ) ) { $ table = $ this -> app [ 'schema.tables' ] [ $ name ] ; $ tableName = $ table -> getTableName ( ) ; } return $ tableName ; }
Get the database name of a table from an alias .
43,432
public function check ( ) { $ fromTables = $ this -> getInstalledTables ( ) ; $ toTables = $ this -> getSchemaTables ( ) ; $ protectedTableNames = $ this -> app [ 'schema.content_tables' ] -> keys ( ) ; $ response = $ this -> getSchemaComparator ( ) -> compare ( $ fromTables , $ toTables , $ protectedTableNames ) ; if ...
Run a check against current and configured schemas .
43,433
public function update ( ) { $ fromTables = $ this -> getInstalledTables ( ) ; $ toTables = $ this -> getSchemaTables ( ) ; $ protectedTableNames = $ this -> app [ 'schema.content_tables' ] -> keys ( ) ; $ this -> getSchemaComparator ( ) -> compare ( $ fromTables , $ toTables , $ protectedTableNames , true ) ; $ respon...
Run database table updates .
43,434
public function getSchemaTables ( ) { if ( $ this -> schemaTables !== null ) { return $ this -> schemaTables ; } $ builder = $ this -> app [ 'schema.builder' ] ; $ builder [ 'extensions' ] -> addPrefix ( $ this -> app [ 'schema.prefix' ] ) ; $ schema = new Schema ( ) ; $ tables = array_merge ( $ builder [ 'base' ] -> g...
Get a merged array of tables .
43,435
public function getInstalledTables ( ) { if ( $ this -> installedTables !== null ) { return $ this -> installedTables ; } $ tables = $ this -> connection -> getSchemaManager ( ) -> listTables ( ) ; foreach ( $ tables as $ table ) { $ alias = str_replace ( $ this -> app [ 'schema.prefix' ] , '' , $ table -> getName ( ) ...
Get the installed table list from Doctrine .
43,436
private function save ( ContentRepository $ contentRepo , Content $ content , $ type , $ legacyType ) { try { $ contentRepo -> save ( $ content ) ; $ this -> dispatch ( $ content , $ type , $ legacyType ) ; } catch ( DBALException $ e ) { $ contentTypeName = $ contentRepo -> getClassMetadata ( ) -> getBoltName ( ) ; $ ...
Save a modified entity .
43,437
private function dispatch ( Content $ content , $ type , $ legacyType ) { $ event = new StorageEvent ( $ content , [ 'contenttype' => $ content -> getContenttype ( ) , 'create' => false ] ) ; try { $ this -> dispatcher -> dispatch ( "timed.$type" , $ event ) ; } catch ( \ Exception $ e ) { $ this -> systemLogger -> cri...
Dispatch the update event .
43,438
private function getTimedRecords ( ContentRepository $ contentRepo , $ type ) { $ query = $ contentRepo -> createQueryBuilder ( 't' ) -> andWhere ( 't.status = :status' ) -> setParameter ( 'currenttime' , Carbon :: now ( ) , Type :: DATETIME ) ; if ( $ type === 'timed' ) { $ this -> getTimedPublishQuery ( $ query ) ; }...
Set the QueryBuilder where parameters .
43,439
private static function htmlencodeParams ( array $ params , $ removeKey = '' ) { if ( $ removeKey ) { unset ( $ params [ $ removeKey ] ) ; } return array_map ( function ( $ val ) { return htmlspecialchars ( $ val , ENT_QUOTES ) ; } , $ params ) ; }
Encode array values as html special chars .
43,440
private static function trans ( $ key , array $ params = [ ] , $ domain = 'messages' , $ locale = null , $ default = null ) { $ app = AppSingleton :: get ( ) ; if ( isset ( $ params [ 'DEFAULT' ] ) ) { if ( $ default === null ) { $ default = $ params [ 'DEFAULT' ] ; } unset ( $ params [ 'DEFAULT' ] ) ; } if ( isset ( $...
Low level translation .
43,441
public static function __ ( $ key , array $ params = [ ] , $ domain = 'messages' , $ locale = null ) { if ( is_array ( $ key ) ) { array_walk ( $ key , function ( & $ value ) { $ value = preg_replace ( '/[^a-z-]/' , '' , strtolower ( $ value ) ) ; } ) ; $ key = implode ( '.' , $ key ) ; } return self :: trans ( $ key ,...
Translation shortcut placeholder .
43,442
protected function auditLog ( $ source , $ message ) { if ( $ this -> app [ 'config' ] -> get ( 'general/auditlog/enabled' , true ) ) { $ this -> app [ 'logger.system' ] -> info ( $ message , [ 'event' => 'nut' , 'source' => $ source ] ) ; } }
Log a Nut execution if auditing is on .
43,443
private function getSortOrder ( $ name = '-datepublish' ) { $ parts = explode ( ' ' , $ name ) ; $ fieldName = $ parts [ 0 ] ; $ sort = 'ASC' ; if ( isset ( $ parts [ 1 ] ) ) { $ sort = $ parts [ 1 ] ; } if ( $ fieldName [ 0 ] === '-' ) { $ fieldName = substr ( $ fieldName , 1 ) ; $ sort = 'DESC' ; } return [ $ fieldNa...
Get sorting order of name stripping possible DESC ASC and also return the sorting order .
43,444
private function orderHelper ( $ a , $ b ) { $ aVal = $ a [ $ this -> orderOn ] ; $ bVal = $ b [ $ this -> orderOn ] ; if ( $ aVal < $ bVal ) { return ! $ this -> orderAscending ; } elseif ( $ aVal > $ bVal ) { return $ this -> orderAscending ; } if ( empty ( $ this -> orderOnSecondary ) ) { return 0 ; } $ aVal = $ a [...
Helper function for sorting an array of \ Bolt \ Legacy \ Content .
43,445
public function unique ( array $ arr1 , array $ arr2 ) { Deprecated :: method ( 3.2 ) ; $ merged = array_unique ( array_merge ( $ arr1 , $ arr2 ) , SORT_REGULAR ) ; $ compiled = [ ] ; foreach ( $ merged as $ key => $ val ) { if ( is_array ( $ val ) && array_values ( $ val ) === $ val ) { $ compiled [ $ key ] = $ val ; ...
Takes two arrays and returns a compiled array of unique sorted values .
43,446
public function setRandomPassword ( $ username ) { $ password = false ; $ repo = $ this -> em -> getRepository ( Entity \ Users :: class ) ; if ( $ userEntity = $ repo -> getUser ( $ username ) ) { $ password = $ this -> app [ 'randomgenerator' ] -> generateString ( 12 ) ; $ userEntity -> setPassword ( $ password ) ; $...
Set a random password for user .
43,447
public function resetPasswordConfirm ( $ token , $ remoteIP , Event $ event ) { $ tokenHash = md5 ( $ token . '-' . str_replace ( '.' , '-' , $ remoteIP ) ) ; $ repo = $ this -> em -> getRepository ( Entity \ Users :: class ) ; if ( $ userEntity = $ repo -> getUserShadowAuth ( $ tokenHash ) ) { $ userAuth = $ repo -> g...
Handle a password reset confirmation .
43,448
public function resetPasswordRequest ( $ username , $ remoteIP , Event $ event ) { $ repo = $ this -> em -> getRepository ( Entity \ Users :: class ) ; $ userEntity = $ repo -> getUser ( $ username ) ; if ( ! $ userEntity ) { $ this -> app [ 'logger.flash' ] -> clear ( ) ; $ this -> app [ 'logger.flash' ] -> info ( Tra...
Sends email with password request . Accepts email or username .
43,449
private function resetPasswordNotification ( Entity \ Users $ userEntity , $ shadowPassword , $ shadowToken ) { $ config = $ this -> app [ 'config' ] ; $ flash = $ this -> app [ 'logger.flash' ] ; $ mailer = $ this -> app [ 'mailer' ] ; $ logger = $ this -> app [ 'logger.system' ] ; $ twig = $ this -> app [ 'twig' ] ; ...
Send the password reset link notification to the user .
43,450
public function listCompaniesJobs ( $ companyName , $ optParams = array ( ) ) { $ params = array ( 'companyName' => $ companyName ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_JobService_ListCompanyJobsResponse" ) ; }
Deprecated . Use ListJobs instead .
43,451
public function approve ( $ name , Google_Service_AccessApproval_ApproveApprovalRequestMessage $ postBody , $ optParams = array ( ) ) { $ params = array ( 'name' => $ name , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'approve' , array ( $ params ) , "Google_...
Approves a request and returns the updated ApprovalRequest .
43,452
public function dismiss ( $ name , Google_Service_AccessApproval_DismissApprovalRequestMessage $ postBody , $ optParams = array ( ) ) { $ params = array ( 'name' => $ name , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'dismiss' , array ( $ params ) , "Google_...
Dismisses a request . Returns the updated ApprovalRequest .
43,453
public function delete ( $ studentId , $ guardianId , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'guardianId' => $ guardianId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'delete' , array ( $ params ) , "Google_Service_Classroom_ClassroomEmpty" ) ; }
Deletes a guardian .
43,454
public function get ( $ studentId , $ guardianId , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'guardianId' => $ guardianId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'get' , array ( $ params ) , "Google_Service_Classroom_Guardian" ) ; }
Returns a specific guardian .
43,455
public function listUserProfilesGuardians ( $ studentId , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_Classroom_ListGuardiansResponse" ) ; }
Returns a list of guardians that the requesting user is permitted to view restricted to those that match the request .
43,456
public function listProjectsModelsVersions ( $ parent , $ optParams = array ( ) ) { $ params = array ( 'parent' => $ parent ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListVersionsResponse" ) ; }
Gets basic information about all the versions of a model .
43,457
public function create ( Google_Service_CloudResourceManager_Folder $ postBody , $ optParams = array ( ) ) { $ params = array ( 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'create' , array ( $ params ) , "Google_Service_CloudResourceManager_Operation" ) ; }
Creates a Folder in the resource hierarchy . Returns an Operation which can be used to track the progress of the folder creation workflow . Upon success the Operation . response field will be populated with the created Folder .
43,458
public function search ( Google_Service_CloudResourceManager_SearchFoldersRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'search' , array ( $ params ) , "Google_Service_CloudResourceManager_Sear...
Search for folders that match specific filter criteria . Search provides an eventually consistent view of the folders a user has access to which meet the specified filter criteria .
43,459
public function listProjectsRulesets ( $ name , $ optParams = array ( ) ) { $ params = array ( 'name' => $ name ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_FirebaseRules_ListRulesetsResponse" ) ; }
List Ruleset metadata only and optionally filter the results by Ruleset name .
43,460
public function updateAutoForwarding ( $ userId , Google_Service_Gmail_AutoForwarding $ postBody , $ optParams = array ( ) ) { $ params = array ( 'userId' => $ userId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'updateAutoForwarding' , array ( $ params ) , ...
Updates the auto - forwarding setting for the specified account . A verified forwarding address must be specified when auto - forwarding is enabled .
43,461
public function updateLanguage ( $ userId , Google_Service_Gmail_LanguageSettings $ postBody , $ optParams = array ( ) ) { $ params = array ( 'userId' => $ userId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'updateLanguage' , array ( $ params ) , "Google_Se...
Updates language settings .
43,462
public function updateContact ( $ resourceName , Google_Service_PeopleService_Person $ postBody , $ optParams = array ( ) ) { $ params = array ( 'resourceName' => $ resourceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'updateContact' , array ( $ params ...
Update contact data for an existing contact person . Any non - contact data will not be modified .
43,463
public function create ( $ studentId , Google_Service_Classroom_GuardianInvitation $ postBody , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'create' , array ( $ params ) , "Google_Ser...
Creates a guardian invitation and sends an email to the guardian asking them to confirm that they are the student s guardian .
43,464
public function get ( $ studentId , $ invitationId , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'invitationId' => $ invitationId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'get' , array ( $ params ) , "Google_Service_Classroom_GuardianInvitation" ) ;...
Returns a specific guardian invitation .
43,465
public function listUserProfilesGuardianInvitations ( $ studentId , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_Classroom_ListGuardianInvitationsResponse" ) ; }
Returns a list of guardian invitations that the requesting user is permitted to view filtered by the parameters provided .
43,466
public function patch ( $ studentId , $ invitationId , Google_Service_Classroom_GuardianInvitation $ postBody , $ optParams = array ( ) ) { $ params = array ( 'studentId' => $ studentId , 'invitationId' => $ invitationId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this ->...
Modifies a guardian invitation .
43,467
public function modify ( $ resourceName , Google_Service_PeopleService_ModifyContactGroupMembersRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'resourceName' => $ resourceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'modify' , array...
Modify the members of a contact group owned by the authenticated user .
43,468
public function getServiceAccount ( $ enterpriseId , $ optParams = array ( ) ) { $ params = array ( 'enterpriseId' => $ enterpriseId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'getServiceAccount' , array ( $ params ) , "Google_Service_AndroidEnterprise_ServiceAccount" ) ; }
Returns a service account and credentials . The service account can be bound to the enterprise by calling setAccount . The service account is unique to this enterprise and EMM and will be deleted if the enterprise is unbound . The credentials contain private key data and are not stored server - side .
43,469
public function create ( $ serviceName , Google_Service_ServiceManagement_Rollout $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'create' , array ( $ params ) , "Google_...
Creates a new service configuration rollout . Based on rollout the Google Service Management will roll out the service configurations to different backend services . For example the logging configuration will be pushed to Google Cloud Logging .
43,470
public function setIamPolicy ( $ resource , Google_Service_Iam_SetIamPolicyRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'resource' => $ resource , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'setIamPolicy' , array ( $ params ) , "Google...
Sets the Cloud IAM access control policy for a ServiceAccount .
43,471
public function executeBatchDml ( $ session , Google_Service_Spanner_ExecuteBatchDmlRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'session' => $ session , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'executeBatchDml' , array ( $ params )...
Executes a batch of SQL DML statements . This method allows many statements to be run with lower latency than submitting them sequentially with ExecuteSql .
43,472
public function partitionQuery ( $ session , Google_Service_Spanner_PartitionQueryRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'session' => $ session , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'partitionQuery' , array ( $ params ) , ...
Creates a set of partition tokens that can be used to execute a query operation in parallel . Each of the returned partition tokens can be used by ExecuteStreamingSql to specify a subset of the query result to read . The same session and read - only transaction must be used by the PartitionQueryRequest used to create t...
43,473
public function partitionRead ( $ session , Google_Service_Spanner_PartitionReadRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'session' => $ session , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'partitionRead' , array ( $ params ) , "Go...
Creates a set of partition tokens that can be used to execute a read operation in parallel . Each of the returned partition tokens can be used by StreamingRead to specify a subset of the read result to read . The same session and read - only transaction must be used by the PartitionReadRequest used to create the partit...
43,474
public function rollback ( $ session , Google_Service_Spanner_RollbackRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'session' => $ session , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'rollback' , array ( $ params ) , "Google_Service_Sp...
Rolls back a transaction releasing any locks it holds . It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit .
43,475
public function allocateQuota ( $ serviceName , Google_Service_ServiceControl_AllocateQuotaRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'allocateQuota' , array...
Attempts to allocate quota for the specified consumer . It should be called before the operation is executed .
43,476
public function check ( $ serviceName , Google_Service_ServiceControl_CheckRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'check' , array ( $ params ) , "Google_...
Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies . It must be called before the operation is executed .
43,477
public function report ( $ serviceName , Google_Service_ServiceControl_ReportRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'report' , array ( $ params ) , "Goog...
Reports operation results to Google Service Control such as logs and metrics . It should be called after an operation is completed .
43,478
public function listCoursesAnnouncements ( $ courseId , $ optParams = array ( ) ) { $ params = array ( 'courseId' => $ courseId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_Classroom_ListAnnouncementsResponse" ) ; }
Returns a list of announcements that the requester is permitted to view .
43,479
public function modifyAssignees ( $ courseId , $ id , Google_Service_Classroom_ModifyAnnouncementAssigneesRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'courseId' => $ courseId , 'id' => $ id , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call (...
Modifies assignee mode and options of an announcement .
43,480
public function pause ( $ accountId , $ proposalId , Google_Service_AdExchangeBuyerII_PauseProposalRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'accountId' => $ accountId , 'proposalId' => $ proposalId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ thi...
Update the given proposal to pause serving . This method will set the DealServingMetadata . DealPauseStatus . has_buyer_paused bit to true for all deals in the proposal .
43,481
public function resume ( $ accountId , $ proposalId , Google_Service_AdExchangeBuyerII_ResumeProposalRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'accountId' => $ accountId , 'proposalId' => $ proposalId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ t...
Update the given proposal to resume serving . This method will set the DealServingMetadata . DealPauseStatus . has_buyer_paused bit to false for all deals in the proposal .
43,482
public function update ( $ accountId , $ proposalId , Google_Service_AdExchangeBuyerII_Proposal $ postBody , $ optParams = array ( ) ) { $ params = array ( 'accountId' => $ accountId , 'proposalId' => $ proposalId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call (...
Update the given proposal at the client known revision number . If the server revision has advanced since the passed - in proposal . proposal_revision an ABORTED error message will be returned . Only the buyer - modifiable fields of the proposal will be updated .
43,483
public function listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples ( $ projectId , $ historyId , $ executionId , $ stepId , $ sampleSeriesId , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'historyId' => $ historyId , 'executionId' => $ executionId , 'stepId' => $ stepId , 'sample...
Lists the Performance Samples of a given Sample Series - The list results are sorted by timestamps ascending - The default page size is 500 samples ; and maximum size allowed 5000 - The response token indicates the last returned PerfSample timestamp - When the results size exceeds the page size submit a subsequent requ...
43,484
public function patch ( $ customer , $ calendarResourceId , Google_Service_Directory_CalendarResource $ postBody , $ optParams = array ( ) ) { $ params = array ( 'customer' => $ customer , 'calendarResourceId' => $ calendarResourceId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; ret...
Updates a calendar resource .
43,485
public function abandonInstances ( $ project , $ region , $ instanceGroupManager , Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'project' => $ project , 'region' => $ region , 'instanceGroupManager' => $ instanceGroupManager , 'pos...
Flags the specified instances to be immediately removed from the managed instance group . Abandoning an instance does not delete the instance but it does remove the instance from any target pools that are applied by the managed instance group . This method reduces the targetSize of the managed instance group by the num...
43,486
public function deleteInstances ( $ project , $ region , $ instanceGroupManager , Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'project' => $ project , 'region' => $ region , 'instanceGroupManager' => $ instanceGroupManager , 'postB...
Flags the specified instances in the managed instance group to be immediately deleted . The instances are also removed from any target pools of which they were a member . This method reduces the targetSize of the managed instance group by the number of instances that you delete . The deleteInstances operation is marked...
43,487
public function recreateInstances ( $ project , $ region , $ instanceGroupManager , Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'project' => $ project , 'region' => $ region , 'instanceGroupManager' => $ instanceGroupManager , 'postBody' ...
Flags the specified instances in the managed instance group to be immediately recreated . The instances are deleted and recreated using the current instance template for the managed instance group . This operation is marked as DONE when the flag is set even if the instances have not yet been recreated . You must separa...
43,488
public function resize ( $ project , $ region , $ instanceGroupManager , $ size , $ optParams = array ( ) ) { $ params = array ( 'project' => $ project , 'region' => $ region , 'instanceGroupManager' => $ instanceGroupManager , 'size' => $ size ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> ca...
Changes the intended size of the managed instance group . If you increase the size the group creates new instances using the current instance template . If you decrease the size the group deletes one or more instances .
43,489
public function listCoursesCourseWork ( $ courseId , $ optParams = array ( ) ) { $ params = array ( 'courseId' => $ courseId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_Classroom_ListCourseWorkResponse" ) ; }
Returns a list of course work that the requester is permitted to view .
43,490
public function patch ( $ courseId , $ id , Google_Service_Classroom_CourseWork $ postBody , $ optParams = array ( ) ) { $ params = array ( 'courseId' => $ courseId , 'id' => $ id , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'patch' , array ( $ params ) , "G...
Updates one or more fields of a course work .
43,491
public function create ( $ projectId , $ historyId , Google_Service_ToolResults_Execution $ postBody , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'historyId' => $ historyId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'create...
Creates an Execution .
43,492
public function listProjectsHistoriesExecutions ( $ projectId , $ historyId , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'historyId' => $ historyId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_ToolResults_L...
Lists Executions for a given History .
43,493
public function patch ( $ projectId , $ historyId , $ executionId , Google_Service_ToolResults_Execution $ postBody , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'historyId' => $ historyId , 'executionId' => $ executionId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params ,...
Updates an existing Execution with the supplied partial entity .
43,494
public function getThumbnail ( $ presentationId , $ pageObjectId , $ optParams = array ( ) ) { $ params = array ( 'presentationId' => $ presentationId , 'pageObjectId' => $ pageObjectId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'getThumbnail' , array ( $ params ) , "Google_Service_...
Generates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image .
43,495
public function listProjectsTriggers ( $ projectId , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'list' , array ( $ params ) , "Google_Service_CloudBuild_ListBuildTriggersResponse" ) ; }
Lists existing BuildTrigger s .
43,496
public function patch ( $ projectId , $ triggerId , Google_Service_CloudBuild_BuildTrigger $ postBody , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'triggerId' => $ triggerId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'patch...
Updates a BuildTrigger by its project ID and trigger ID .
43,497
public function lintPolicy ( Google_Service_Iam_LintPolicyRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'lintPolicy' , array ( $ params ) , "Google_Service_Iam_LintPolicyResponse" ) ; }
Lints a Cloud IAM policy object or its sub fields . Currently supports google . iam . v1 . Policy google . iam . v1 . Binding and google . iam . v1 . Binding . condition .
43,498
public function delete ( $ userId , $ forwardingEmail , $ optParams = array ( ) ) { $ params = array ( 'userId' => $ userId , 'forwardingEmail' => $ forwardingEmail ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'delete' , array ( $ params ) ) ; }
Deletes the specified forwarding address and revokes any verification that may have been required .
43,499
public function create ( $ projectId , Google_Service_ToolResults_History $ postBody , $ optParams = array ( ) ) { $ params = array ( 'projectId' => $ projectId , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'create' , array ( $ params ) , "Google_Service_Tool...
Creates a History .