idx int64 0 60.3k | question stringlengths 64 4.24k | target stringlengths 5 618 |
|---|---|---|
29,200 | function setLimit ( $ limit ) { if ( null !== $ limit ) { $ limit = ( int ) $ limit ; } $ this -> limit = $ limit ; return $ this ; } | Sets the limit of rows that can be returned |
29,201 | protected function hasAggregates ( ) { if ( $ this -> groups ) { return true ; } foreach ( $ this -> columns as $ column ) { if ( strpos ( $ column , '(' ) !== false ) { return true ; } } return false ; } | Returns true if this Query uses aggregate functions in either a GROUP BY clause or in the select columns |
29,202 | function doCount ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_COUNT ) ; return ( int ) $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) -> fetchColumn ( ) ; } | Returns a count of rows for result |
29,203 | function doDelete ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_DELETE ) ; return ( int ) $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) -> rowCount ( ) ; } | Executes DELETE query and returns count of rows deleted . |
29,204 | function doSelect ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_SELECT ) ; return $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) ; } | Executes SELECT query and returns a result set . |
29,205 | static public function getMimeType ( $ contentType , $ filename = null ) { if ( $ contentType = strtolower ( $ contentType ) ) { if ( strpos ( $ contentType , '/' ) !== false ) { $ mimeTypes = array_keys ( self :: $ mime_types , $ contentType ) ; $ ext = $ filename ? pathinfo ( $ filename , PATHINFO_EXTENSION ) : null ; if ( count ( $ mimeTypes ) === 1 ) { return $ mimeTypes [ 0 ] ; } elseif ( count ( $ mimeTypes ) > 1 ) { return $ ext && in_array ( $ ext , $ mimeTypes ) ? $ ext : $ mimeTypes [ 0 ] ; } else { return $ ext ? static :: getMimeType ( $ ext ) : null ; } } else { $ ext = pathinfo ( $ contentType , PATHINFO_EXTENSION ) ; if ( isset ( static :: $ mime_types [ $ ext ] ) ) { return $ ext ; } } } elseif ( $ filename ) { return static :: getMimeType ( $ filename ) ; } return null ; } | return mimetype return mimetype like txt . |
29,206 | protected function getArrayableAttributes ( ) { $ attributes = $ this -> attributes ; $ attributes [ 'firstname' ] = $ attributes [ 'first_name' ] ; $ attributes [ 'lastname' ] = $ attributes [ 'last_name' ] ; return $ this -> getArrayableItems ( $ attributes ) ; } | Get an attribute array of all arrayable attributes . |
29,207 | public function registerDefaultStats ( $ filename ) { if ( ! file_exists ( $ filename ) ) { throw new Exception ( sprintf ( 'File for defaults stats with filename "%s" is not found' , $ filename ) ) ; } try { $ yaml = Yaml :: parse ( file_get_contents ( $ filename ) ) ; } catch ( ParseException $ e ) { throw new Exception ( sprintf ( 'Unable to parse the YAML string: %s' , $ e -> getMessage ( ) ) ) ; } if ( ! isset ( $ yaml [ 'default_stats' ] ) && ! is_array ( $ yaml [ 'default_stats' ] ) ) { throw new Exception ( sprintf ( 'The defaults stats file "%s" must have "%s" key as root' , $ filename , 'default_stats' ) ) ; } $ this -> defaults = new Collection ( array_merge ( $ this -> defaults -> toArray ( ) , $ yaml [ 'default_stats' ] ) ) ; } | Register a new default stats file . |
29,208 | private function setPeriod ( $ period , $ options ) { $ format = 'Y-m-d 00:00:00' ; $ obj = new \ stdClass ( ) ; $ obj -> to = Carbon :: now ( ) ; switch ( $ period ) { case 'lastweek' : $ obj -> from = new Carbon ( 'last week' ) ; break ; case 'lastmonth' : $ obj -> from = new Carbon ( 'last month' ) ; break ; case 'range' : break ; default : $ obj -> from = Carbon :: createFromFormat ( 'Y-m-d' , '2014-11-11' ) ; break ; } $ obj -> formated = $ obj -> from -> format ( $ format ) . '::' . $ obj -> to -> format ( $ format ) ; return $ obj ; } | Set a period . |
29,209 | public function defaults ( $ key = null ) { if ( is_string ( $ key ) ) { if ( ! $ this -> has ( $ key ) ) { throw new Exception ( sprintf ( Exception :: STATS_KEY_NOT_EXISTS , $ key ) ) ; } return $ this -> defaults -> offsetGet ( $ key ) ; } return $ this -> defaults -> toArray ( ) ; } | Get defaults stats . |
29,210 | private function getCachedStats ( ) { if ( ! Cache :: has ( self :: CACHE_NAME ) ) { $ this -> initCachedStats ( ) ; } return new Collection ( Cache :: get ( self :: CACHE_NAME ) ) ; } | Get the cached stats data . |
29,211 | private function setCachedStats ( Collection $ stats ) { $ expiresAt = Carbon :: now ( ) -> addMinutes ( 15 ) ; $ stats = $ stats -> toArray ( ) ; Cache :: put ( self :: CACHE_NAME , $ stats , $ expiresAt ) ; $ this -> fireEvent ( 'cache_updated' , array ( $ stats ) ) ; } | Set new stats data to cache . |
29,212 | public function defaultSettings ( ) { if ( ! defined ( 'AD_UPDATE_NAME' ) ) { define ( 'AD_UPDATE_NAME' , true ) ; } if ( ! defined ( 'AD_UPDATE_EMAIL' ) ) { define ( 'AD_UPDATE_EMAIL' , true ) ; } if ( ! defined ( 'AD_UPDATE_META' ) ) { define ( 'AD_UPDATE_META' , true ) ; } if ( ! defined ( 'AD_META_PREFIX' ) ) { define ( 'AD_META_PREFIX' , "ad_" ) ; } if ( ! defined ( 'AD_SAVE_PASSWORD' ) ) { define ( 'AD_SAVE_PASSWORD' , false ) ; } if ( ! defined ( 'AD_RANDOM_PASSWORD' ) ) { define ( 'AD_RANDOM_PASSWORD' , true ) ; } if ( ! defined ( 'AD_BULK_IMPORT' ) ) { define ( 'AD_BULK_IMPORT' , false ) ; } if ( ! defined ( 'AD_BULK_IMPORT_ROLE' ) ) { define ( 'AD_BULK_IMPORT_ROLE' , "subscriber" ) ; } if ( ! defined ( 'AD_BULK_IMPORT_PROPAGATE' ) ) { define ( 'AD_BULK_IMPORT_PROPAGATE' , true ) ; } if ( ! defined ( 'AD_CLEANING' ) ) { define ( 'AD_CLEANING' , true ) ; } } | Default to basic settings if constants is undefined . |
29,213 | public function hijackLogin ( $ username ) { if ( is_email ( $ username ) ) { $ username = $ this -> emailToUsername ( $ username ) ; } $ this -> username = $ username ; $ this -> password = isset ( $ _POST [ 'pwd' ] ) ? $ _POST [ 'pwd' ] : "" ; $ this -> userId = $ this -> getUserID ( $ username ) ; if ( is_numeric ( $ this -> userId ) && ! empty ( $ this -> userId ) ) { $ this -> curl = new Helper \ Curl ( ) ; $ this -> profile = new Profile ( ) ; $ result = $ this -> fetchUser ( $ this -> username , $ this -> password ) ; if ( $ result !== false ) { if ( $ this -> validateLogin ( $ result , $ this -> username ) && $ result !== false ) { $ this -> profile -> update ( $ result , $ this -> userId ) ; $ this -> signOn ( array ( 'user_login' => $ this -> username , 'user_password' => $ this -> password , 'remember' => isset ( $ _POST [ 'rememberme' ] ) && $ _POST [ 'rememberme' ] == "forever" ? true : false ) ) ; if ( in_array ( 'subscriber' , ( array ) get_userdata ( $ this -> userId ) -> roles ) ) { if ( isset ( $ _POST [ '_wp_http_referer' ] ) ) { $ referer = $ _POST [ '_wp_http_referer' ] ; } else { $ referer = "/" ; } if ( is_multisite ( ) ) { wp_redirect ( apply_filters ( 'adApiWpIntegration/login/subscriberRedirect' , network_home_url ( $ referer ) ) ) ; exit ; } wp_redirect ( apply_filters ( 'adApiWpIntegration/login/subscriberRedirect' , home_url ( $ referer ) ) ) ; exit ; } wp_redirect ( apply_filters ( 'adApiWpIntegration/login/defaultRedirect' , admin_url ( "?auth=active-directory" ) ) ) ; exit ; } } } } | Init login process . |
29,214 | private function fetchUser ( $ username , $ password ) { if ( ! empty ( $ username ) && ! empty ( $ password ) && is_numeric ( $ this -> userId ) ) { $ data = array ( 'username' => $ username , 'password' => $ password ) ; $ response = new Helper \ Response ( ) ; $ result = $ this -> curl -> request ( 'POST' , rtrim ( AD_INTEGRATION_URL , "/" ) . '/user/current' , $ data , 'json' , array ( 'Content-Type: application/json' ) ) ; if ( is_wp_error ( $ result ) ) { return false ; } if ( $ response :: isJsonError ( $ result ) ) { return false ; } $ result = json_decode ( $ result ) ; if ( is_array ( $ result ) ) { $ result = array_pop ( $ result ) ; } return $ result ; } return false ; } | Get information from the api - service |
29,215 | private function validateLogin ( $ data , $ username ) { if ( ! is_object ( $ data ) ) { return false ; } if ( isset ( $ data -> error ) ) { return false ; } if ( isset ( $ data -> samaccountname ) && strtolower ( $ data -> samaccountname ) == strtolower ( $ username ) ) { return true ; } return null ; } | Validate that this is a true callback |
29,216 | private function emailToUsername ( $ email = null ) { if ( $ user = get_user_by ( 'email' , $ email ) ) { if ( isset ( $ user -> user_login ) ) { return $ user -> user_login ; } } return null ; } | Translate email to username |
29,217 | public function getAdminListTitle ( ) { $ prefix = '' ; $ lvl = $ this -> getLvl ( ) ; for ( $ i = 0 ; $ i < $ lvl ; $ i ++ ) { $ prefix .= ' ' ; } return $ prefix . $ this -> getTitle ( ) ; } | Get title in admin list |
29,218 | public function isTargetValid ( ExecutionContextInterface $ context ) { if ( $ this -> getParent ( ) != $ this && ! $ this -> getUrl ( ) && ! $ this -> getArticle ( ) ) { $ context -> addViolationAt ( 'url' , 'This value should not be blank.' ) ; } } | Check if Menu has url or Article linked if not root |
29,219 | public function upload ( $ destinationPath , $ publicPath ) { $ this -> getFile ( ) -> move ( $ destinationPath , $ this -> getFile ( ) -> getClientOriginalName ( ) ) ; $ this -> path = rtrim ( str_ireplace ( $ publicPath , '' , $ destinationPath ) , '/' ) . '/' . $ this -> getFile ( ) -> getClientOriginalName ( ) ; $ this -> setFile ( null ) ; } | Manages the copying of the file to the relevant place on the server |
29,220 | private function checkId ( Segment $ segment , $ id ) { $ user = $ this -> usersRepository -> find ( $ id ) ; if ( ! $ user ) { return false ; } return $ segment -> isIn ( 'id' , $ id ) ; } | checkId verifies whether user with given ID is member of provided segment . |
29,221 | private function checkEmail ( Segment $ segment , $ email ) { $ user = $ this -> usersRepository -> findBy ( 'email' , $ email ) ; if ( ! $ user ) { return false ; } return $ segment -> isIn ( 'email' , $ email ) ; } | checkEmail verifies whether user with given email is member of provided segment . |
29,222 | private static function unistr2ords ( $ str ) { $ ords = array ( ) ; $ len = iconv_strlen ( $ str ) ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) { $ char = iconv_substr ( $ str , $ i , 1 ) ; $ val = self :: utf8ToUnicode ( $ char ) ; if ( $ val !== false && array_key_exists ( 0 , $ val ) ) { $ ords [ ] = $ val [ 0 ] ; } } return $ ords ; } | Turns a string of utf - 8 characters into an array of ordinal values . |
29,223 | private static function utf8ToUnicode ( $ str ) { $ new = array ( ) ; $ len = iconv_strlen ( $ str ) ; for ( $ n = 0 ; $ n < $ len ; $ n ++ ) { $ char = iconv_substr ( $ str , $ n , 1 ) ; $ new [ ] = self :: uniord ( $ char ) ; } return $ new ; } | Takes an UTF - 8 string and returns an array of integers representing the Unicode characters . |
29,224 | static function embedParams ( $ string , $ params , DABLPDO $ conn = null ) { if ( null != $ conn ) { $ params = $ conn -> prepareInput ( $ params ) ; } else { foreach ( $ params as & $ value ) { if ( is_int ( $ value ) ) { continue ; } elseif ( is_bool ( $ value ) ) { $ value = $ value ? 1 : 0 ; } elseif ( is_null ( $ value ) ) { $ value = 'NULL' ; } else { $ value = "'{$value}'" ; } } } $ string = str_replace ( '%' , '%%' , $ string ) ; $ string = str_replace ( self :: PARAM , '%s' , $ string ) ; array_unshift ( $ params , $ string ) ; if ( ! ( $ string = @ call_user_func_array ( 'sprintf' , $ params ) ) ) { throw new RuntimeException ( 'Could not insert parameters into query string. The number of ?s might not match the number of parameters.' ) ; } return $ string ; } | Emulates a prepared statement . Should only be used as a last resort . |
29,225 | function bindAndExecute ( ) { $ conn = $ this -> connection ; if ( $ conn === null ) { throw new RuntimeException ( 'bindAndExecute cannot be called on a QueryStatement without a connection.' ) ; } if ( $ conn instanceof DBMSSQL && $ conn -> getDriver ( ) === 'dblib' && function_exists ( 'mb_detect_encoding' ) ) { return $ conn -> query ( $ this -> __toString ( ) ) ; } if ( $ conn instanceof DBSQLite ) { return $ conn -> query ( $ this -> __toString ( ) ) ; } $ string = self :: embedIdentifiers ( $ this -> getString ( ) , array_values ( $ this -> identifiers ) , $ conn ) ; $ result = $ conn -> prepare ( $ string ) ; foreach ( $ this -> getParams ( ) as $ key => $ value ) { $ pdo_type = PDO :: PARAM_STR ; if ( is_int ( $ value ) ) { $ pdo_type = PDO :: PARAM_INT ; } elseif ( is_null ( $ value ) ) { $ pdo_type = PDO :: PARAM_NULL ; } elseif ( is_bool ( $ value ) ) { $ value = $ value ? 1 : 0 ; $ pdo_type = PDO :: PARAM_INT ; } $ result -> bindValue ( $ key + 1 , $ value , $ pdo_type ) ; } $ result -> execute ( ) ; return $ result ; } | Creates a PDOStatment using the string . Loops through param array and binds each value . Executes and returns the prepared statement . |
29,226 | static function GetData ( $ name , $ filter = FILTER_DEFAULT , $ options = null ) { return filter_input ( INPUT_GET , $ name , $ filter , $ options ) ; } | Gets a single GET parameter value by name |
29,227 | static function PostData ( $ name , $ filter = FILTER_DEFAULT , $ options = null ) { return filter_input ( INPUT_POST , $ name , $ filter , $ options ) ; } | Gets a single POST parameter value by name |
29,228 | static function GetArray ( $ name = null ) { $ get = filter_input_array ( INPUT_GET ) ; if ( ! $ name ) { return $ get === null ? array ( ) : $ get ; } else if ( isset ( $ get [ $ name ] ) && is_array ( $ get [ $ name ] ) ) { return $ get [ $ name ] ; } return array ( ) ; } | Gets the GET parameters as array |
29,229 | static function PostArray ( $ name = null ) { $ post = filter_input_array ( INPUT_POST ) ; if ( ! $ name ) { return $ post ; } else if ( isset ( $ post [ $ name ] ) && is_array ( $ post [ $ name ] ) ) { return $ post [ $ name ] ; } return array ( ) ; } | Gets the posted data as array |
29,230 | static function MethodData ( RequestMethod $ method , $ name , $ filter = FILTER_DEFAULT , $ options = null ) { switch ( $ method ) { case RequestMethod :: Get ( ) : return self :: GetData ( $ name , $ filter , $ options ) ; case RequestMethod :: Post ( ) : return self :: PostData ( $ name , $ filter , $ options ) ; default : throw new \ InvalidArgumentException ( 'Request::MethodData is available for request methods POST and GET, only' ) ; } } | Returns GET or POST data |
29,231 | static function MethodArray ( RequestMethod $ method , $ name = '' ) { switch ( $ method ) { case RequestMethod :: Get ( ) : return self :: GetArray ( $ name ) ; case RequestMethod :: Post ( ) : return self :: PostArray ( $ name ) ; default : throw new \ InvalidArgumentException ( 'Request::MethodArray is available for request methods POST and GET, only' ) ; } } | Returns GET or POST data array |
29,232 | static function Protocol ( ) { $ sp = Server :: Variable ( 'SERVER_PROTOCOL' ) ; $ protocol = substr ( $ sp , 0 , strpos ( $ sp , '/' ) ) ; if ( self :: IsHttps ( ) && ! Str :: EndsWith ( 's' , $ protocol ) ) { $ protocol .= 's' ; } return Str :: ToLower ( $ protocol ) ; } | The url protocol string without versioning |
29,233 | public function parseType ( string $ input ) { $ matches = $ properties = [ ] ; if ( \ preg_match ( self :: STRUCT , trim ( $ input ) , $ matches ) ) { \ preg_match_all ( self :: PROPERTY , $ matches [ 'properties' ] , $ properties ) ; $ struct = new Struct ( ) ; $ struct -> setName ( $ matches [ 'name' ] ) ; for ( $ x = 0 , $ max = count ( $ properties [ 'name' ] ) ; $ x < $ max ; $ x ++ ) { $ type = $ this -> convertWsdlTypeToPhpType ( $ properties [ 'type' ] [ $ x ] ) ; $ name = $ this -> covertNameToPhpName ( $ properties [ 'name' ] [ $ x ] ) ; $ struct -> addProperty ( new Property ( $ name , $ type ) ) ; } return $ struct ; } elseif ( \ preg_match ( self :: ARRAY_OF_COMPLEX_TYPE , trim ( $ input ) , $ matches ) ) { $ struct = new Struct ( ) ; $ struct -> setName ( $ matches [ 'name' ] ) ; $ struct -> addProperty ( new Property ( $ matches [ 'type' ] , $ matches [ 'type' ] . '[]' ) ) ; return $ struct ; } elseif ( \ preg_match ( self :: SIMPLE_TYPE , trim ( $ input ) , $ matches ) ) { return new Property ( $ matches [ 'name' ] , $ matches [ 'type' ] ) ; } else { throw new \ Exception ( sprintf ( 'Unable to parse input [%s]' , $ input ) ) ; } } | Parse a type from a string to a Struct |
29,234 | public function parseFunction ( string $ input ) : Method { if ( ! \ preg_match ( self :: _FUNCTION , trim ( $ input ) , $ matches ) ) { throw new \ Exception ( sprintf ( 'Unable to parse input [%s]' , $ input ) ) ; } return new Method ( $ matches [ 'name' ] , $ matches [ 'in' ] , $ matches [ 'out' ] ) ; } | Parse the input from a string to a function |
29,235 | protected function registerClientScript ( ) { $ view = $ this -> getView ( ) ; $ asset = HighchartsAsset :: register ( $ view ) ; if ( ! empty ( $ this -> modules ) ) { foreach ( $ this -> modules as $ module ) { $ asset -> js [ ] = 'modules/' . $ module . ( YII_DEBUG ? '.src.js' : '.js' ) ; } } if ( $ this -> enable3d ) { $ asset -> js [ ] = YII_DEBUG ? 'highcharts-3d.src.js' : 'highcharts-3d.js' ; } if ( $ this -> enableMore ) { $ asset -> js [ ] = YII_DEBUG ? 'highcharts-more.src.js' : 'highcharts-more.js' ; } $ clientOptions = $ this -> clientOptions ; if ( ! empty ( $ this -> clientEvents ) ) { foreach ( $ this -> clientEvents as $ key => $ function ) { $ clientOptions [ 'chart' ] [ 'events' ] [ $ key ] = $ function ; } } $ jsonClientOptions = empty ( $ clientOptions ) ? '' : Json :: encode ( $ clientOptions ) ; $ js = "var {$this->chartVariable} = new Highcharts.Chart($jsonClientOptions);" ; $ view -> registerJs ( $ js ) ; } | Registers CKEditor JS |
29,236 | public function getViews ( ) : array { $ result = [ ] ; foreach ( $ this -> views -> get ( ) as $ row ) { $ result [ ] = $ row -> translatedName ; } return $ result ; } | Vrati nazvy zobarazeni |
29,237 | public static function createACLWithUser ( $ user ) { $ acl = new AVACL ( ) ; $ acl -> setUserReadAccess ( $ user , true ) ; $ acl -> setUserWriteAccess ( $ user , true ) ; return $ acl ; } | Create new AVACL with read and write access for the given user . |
29,238 | public static function _createACLFromJSON ( $ data ) { $ acl = new AVACL ( ) ; foreach ( $ data as $ id => $ permissions ) { if ( ! is_string ( $ id ) ) { throw new \ Exception ( 'Tried to create an ACL with an invalid userId.' ) ; } foreach ( $ permissions as $ accessType => $ value ) { if ( $ accessType !== 'read' && $ accessType !== 'write' ) { throw new \ Exception ( 'Tried to create an ACL with an invalid permission type.' ) ; } if ( ! is_bool ( $ value ) ) { throw new \ Exception ( 'Tried to create an ACL with an invalid permission value.' ) ; } $ acl -> setAccess ( $ accessType , $ id , $ value ) ; } } return $ acl ; } | Create new AVACL from existing permissions . |
29,239 | private function setAccess ( $ accessType , $ userId , $ allowed ) { if ( $ userId instanceof AVUser ) { $ userId = $ userId -> getObjectId ( ) ; } if ( $ userId instanceof AVRole ) { $ userId = "role:" . $ userId -> getName ( ) ; } if ( ! is_string ( $ userId ) ) { throw new AVException ( "Invalid target for access control." ) ; } if ( ! isset ( $ this -> permissionsById [ $ userId ] ) ) { if ( ! $ allowed ) { return ; } $ this -> permissionsById [ $ userId ] = array ( ) ; } if ( $ allowed ) { $ this -> permissionsById [ $ userId ] [ $ accessType ] = true ; } else { unset ( $ this -> permissionsById [ $ userId ] [ $ accessType ] ) ; if ( empty ( $ this -> permissionsById [ $ userId ] ) ) { unset ( $ this -> permissionsById [ $ userId ] ) ; } } } | Set access permission with access name user id and if the user has permission for accessing or not . |
29,240 | private function getAccess ( $ accessType , $ userId ) { if ( ! isset ( $ this -> permissionsById [ $ userId ] ) ) { return false ; } if ( ! isset ( $ this -> permissionsById [ $ userId ] [ $ accessType ] ) ) { return false ; } return $ this -> permissionsById [ $ userId ] [ $ accessType ] ; } | Get if the given userId has a permission for the given access type or not . |
29,241 | public function setUserReadAccess ( $ user , $ allowed ) { if ( ! $ user -> getObjectId ( ) ) { throw new \ Exception ( "cannot setReadAccess for a user with null id" ) ; } $ this -> setReadAccess ( $ user -> getObjectId ( ) , $ allowed ) ; } | Set whether the given user is allowed to read this object . |
29,242 | public function setUserWriteAccess ( $ user , $ allowed ) { if ( ! $ user -> getObjectId ( ) ) { throw new \ Exception ( "cannot setWriteAccess for a user with null id" ) ; } $ this -> setWriteAccess ( $ user -> getObjectId ( ) , $ allowed ) ; } | Set whether the given user is allowed to write this object . |
29,243 | public function setRoleReadAccess ( $ role , $ allowed ) { $ this -> validateRoleState ( $ role ) ; $ this -> setRoleReadAccessWithName ( $ role -> getName ( ) , $ allowed ) ; } | Set whether users belonging to the given role are allowed to read this object . The role must already be saved on the server and its data must have been fetched in order to use this method . |
29,244 | public function setRoleWriteAccess ( $ role , $ allowed ) { $ this -> validateRoleState ( $ role ) ; $ this -> setRoleWriteAccessWithName ( $ role -> getName ( ) , $ allowed ) ; } | Set whether users belonging to the given role are allowed to write this object . The role must already be saved on the server and its data must have been fetched in order to use this method . |
29,245 | public static function setDefaultACL ( $ acl , $ withAccessForCurrentUser ) { self :: $ defaultACLWithCurrentUser = null ; self :: $ lastCurrentUser = null ; if ( $ acl ) { self :: $ defaultACL = clone $ acl ; self :: $ defaultACL -> _setShared ( true ) ; self :: $ defaultACLUsesCurrentUser = $ withAccessForCurrentUser ; } else { self :: $ defaultACL = null ; } } | Sets a default ACL that will be applied to all AVObjects when they are created . |
29,246 | public static function _getDefaultACL ( ) { if ( self :: $ defaultACLUsesCurrentUser && self :: $ defaultACL ) { $ last = self :: $ lastCurrentUser ? clone self :: $ lastCurrentUser : null ; if ( ! AVUser :: getCurrentUser ( ) ) { return self :: $ defaultACL ; } if ( $ last != AVUser :: getCurrentUser ( ) ) { self :: $ defaultACLWithCurrentUser = clone self :: $ defaultAC ; self :: $ defaultACLWithCurrentUser -> _setShared ( true ) ; self :: $ defaultACLWithCurrentUser -> setUserReadAccess ( AVUser :: getCurrentUser ( ) , true ) ; self :: $ defaultACLWithCurrentUser -> setUserWriteAccess ( AVUser :: getCurrentUser ( ) , true ) ; self :: $ lastCurrentUser = clone AVUser :: getCurrentUser ( ) ; } return self :: $ defaultACLWithCurrentUser ; } return self :: $ defaultACL ; } | Get the defaultACL . |
29,247 | public function crudFormatValueDate ( $ val , $ args = [ ] ) { if ( is_int ( $ val ) ) { return date ( $ args [ 'format' ] ?? 'd.m.Y' , $ val ) ; } elseif ( $ val instanceof \ Carbon \ Carbon ) { return $ val -> format ( $ args [ 'format' ] ?? 'd.m.Y' ) ; } } | Format date from timestamp or Carbon instance . |
29,248 | public static function transliterate ( $ text , $ separator = '-' ) { if ( preg_match ( '/[\x80-\xff]/' , $ text ) && self :: validUtf8 ( $ text ) ) { $ text = self :: utf8ToAscii ( $ text ) ; } return self :: postProcessText ( $ text , $ separator ) ; } | Uses transliteration tables to convert any kind of utf8 character . |
29,249 | public function startSession ( $ domain ) { $ this -> cookieLocation = str_replace ( 'APP_ROOT' , APP_ROOT , $ this -> cookieLocation ) ; if ( ! is_dir ( $ this -> cookieLocation ) ) mkdir ( $ this -> cookieLocation ) ; if ( ! is_dir ( $ this -> cookieLocation ) ) { $ this -> error ( $ this -> error = "Can't create folder {$this->cookieLocation}" ) ; } $ this -> currentFile = $ this -> cookieLocation . date ( 'YmdHis' ) . '-' . md5 ( $ domain ) ; fclose ( fopen ( $ this -> currentFile , 'w' ) ) ; } | Create a session file for specified domain |
29,250 | public function postRequest ( $ url , $ fields = [ ] , $ ref = null , $ opts = [ ] ) { return $ this -> _curl ( $ url , $ fields , $ ref , $ opts ) ; } | Create a post request |
29,251 | public function getRequest ( $ url , $ ref = null , $ opts = [ ] ) { return $ this -> _curl ( $ url , [ ] , $ ref , $ opts ) ; } | Create a get request |
29,252 | public function setSlotName ( $ slotName ) { if ( ! is_string ( $ slotName ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The slot name passed to "%s" must be a string' , get_class ( $ this ) ) ) ; } $ this -> slotName = $ slotName ; return $ this ; } | Sets the name of the slot |
29,253 | public function parse ( $ ini ) { if ( ! is_string ( $ ini ) ) { throw new ParserException ( 'Cannot parse non-string INI data' ) ; } $ ini = @ parse_ini_string ( $ ini , true , INI_SCANNER_RAW ) ; if ( false === $ ini ) { $ e = error_get_last ( ) ; throw new ParserException ( 'Error during parsing INI: ' . $ e [ 'message' ] ) ; } return $ this -> normalize ( $ ini ) ; } | Parses an INI string . |
29,254 | private function normalize ( $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as & $ subValue ) { $ subValue = $ this -> normalize ( $ subValue ) ; } return $ value ; } if ( ! is_string ( $ value ) ) { return $ value ; } if ( $ this -> compareValues ( $ value , [ 'true' , 'on' , 'yes' ] ) ) { return true ; } if ( $ this -> compareValues ( $ value , [ 'false' , 'off' , 'no' , 'none' ] ) ) { return false ; } if ( $ this -> compareValues ( $ value , [ 'null' ] ) ) { return ; } if ( is_numeric ( $ value ) ) { $ numericValue = $ value + 0 ; if ( ( is_int ( $ numericValue ) && ( int ) $ value === $ numericValue ) || ( is_float ( $ numericValue ) && ( float ) $ value === $ numericValue ) ) { $ value = $ numericValue ; } } return $ value ; } | Normalizes INI and other values . |
29,255 | private function compareValues ( $ value , array $ comparisons ) { foreach ( $ comparisons as $ comparison ) { if ( 0 === strcasecmp ( $ value , $ comparison ) ) { return true ; } } return false ; } | Case insensitively compares values . |
29,256 | protected function respondOnboardNewUser ( MemberInvitation $ memberInvitation ) { return view ( 'combine::response.member-invitation.accept-new-user' , [ 'email' => $ memberInvitation -> email , 'teamName' => $ memberInvitation -> member -> team -> name , 'token' => $ this -> broker ( ) -> createToken ( $ memberInvitation -> member -> user ) , ] ) ; } | Respond with User onboarding view |
29,257 | public function show ( $ token ) { $ memberInvitation = MemberInvitation :: where ( 'token' , $ token ) -> first ( ) ; if ( empty ( $ memberInvitation ) ) { return view ( 'combine::response.member-invitation.not-found' ) ; } switch ( $ memberInvitation -> member -> user -> status ) { case 'Invited' : return $ this -> respondAcceptNewUser ( $ memberInvitation ) ; case 'Accepted' : return $ this -> respondOnboardNewUser ( $ memberInvitation ) ; default : return $ this -> respondAcceptExistingUser ( $ memberInvitation ) ; } } | Fetches an invitation via token and shows a form for setting a password |
29,258 | public function move ( $ uid , $ mailbox ) { if ( ! $ this -> socket ) { $ this -> connect ( ) ; } $ this -> call ( 'UID COPY ' . $ uid . ' ' . $ mailbox ) ; return $ this -> remove ( $ uid ) ; } | Moves an email to another mailbox |
29,259 | public function getArea ( $ name ) { foreach ( $ this -> areas as $ area ) { if ( $ area -> getName ( ) == $ name ) { return $ area ; } } return ; } | Get area by name |
29,260 | public function onGetFileEvent ( ObjectFileEvent $ event ) { if ( ! Splash :: file ( ) -> isFile ( $ event -> getPath ( ) , $ event -> getMd5 ( ) ) ) { return false ; } $ fileArray = Splash :: file ( ) -> readFile ( $ event -> getPath ( ) , $ event -> getMd5 ( ) ) ; if ( ! is_array ( $ fileArray ) || ! isset ( $ fileArray [ "raw" ] ) ) { return false ; } $ event -> setContents ( $ fileArray ) ; return true ; } | Read File from Local Server with Md5 Protection |
29,261 | public static function parseFile ( $ file , $ exceptionOnInvalidType = false , $ objectSupport = false ) { if ( ! is_readable ( $ file ) ) { throw new Exception ( "File '$file' is not readable" ) ; } return self :: parse ( file_get_contents ( $ file ) , $ exceptionOnInvalidType , $ objectSupport ) ; } | Parsuje plik w formacie yml . |
29,262 | public function useDefaults ( ) { $ allowedTypes = [ 'ai' , 'aif' , 'aiff' , 'avi' , 'bmp' , 'bz2' , 'csv' , 'doc' , 'docx' , 'eps' , 'fla' , 'flv' , 'gif' , 'gz' , 'jpe' , 'jpg' , 'jpeg' , 'log' , 'md' , 'mov' , 'mp2' , 'mp3' , 'mp4' , 'mpg' , 'mpeg' , 'otf' , 'pdf' , 'png' , 'ppt' , 'pptx' , 'psd' , 'rar' , 'svg' , 'swf' , 'tar' , 'tbz' , 'tbz2' , 'tgz' , 'tif' , 'tiff' , 'tsv' , 'ttf' , 'txt' , 'wav' , 'wma' , 'wmv' , 'xls' , 'xlsx' , 'xml' , 'zip' ] ; $ disallowedTypes = [ 'css' , 'htm' , 'html' , 'js' , 'json' , 'pgsql' , 'php' , 'php3' , 'php4' , 'php5' , 'sql' , 'sqlite' , 'yaml' , 'yml' ] ; $ this -> setMaxSize ( 10000000 ) ; $ this -> setAllowedTypes ( $ allowedTypes ) ; $ this -> setDisallowedTypes ( $ disallowedTypes ) ; return $ this ; } | Use default file upload settings |
29,263 | public function setUploadDir ( $ dir ) { if ( ! file_exists ( $ dir ) || ! is_dir ( $ dir ) ) { $ this -> error = self :: UPLOAD_ERR_DIR_NOT_EXIST ; } else if ( ! is_writable ( $ dir ) ) { $ this -> error = self :: UPLOAD_ERR_DIR_NOT_WRITABLE ; } $ this -> uploadDir = $ dir ; return $ this ; } | Set the upload directory |
29,264 | public function addAllowedType ( $ type ) { if ( ! in_array ( strtolower ( $ type ) , $ this -> allowedTypes ) ) { $ this -> allowedTypes [ ] = strtolower ( $ type ) ; } return $ this ; } | Add an allowed type |
29,265 | public function addDisallowedType ( $ type ) { if ( ! in_array ( strtolower ( $ type ) , $ this -> disallowedTypes ) ) { $ this -> disallowedTypes [ ] = strtolower ( $ type ) ; } return $ this ; } | Add a disallowed type |
29,266 | public function removeAllowedType ( $ type ) { if ( in_array ( strtolower ( $ type ) , $ this -> allowedTypes ) ) { unset ( $ this -> allowedTypes [ array_search ( strtolower ( $ type ) , $ this -> allowedTypes ) ] ) ; } return $ this ; } | Remove an allowed type |
29,267 | public function removeDisallowedType ( $ type ) { if ( in_array ( strtolower ( $ type ) , $ this -> disallowedTypes ) ) { unset ( $ this -> disallowedTypes [ array_search ( strtolower ( $ type ) , $ this -> disallowedTypes ) ] ) ; } return $ this ; } | Remove a disallowed type |
29,268 | public function isAllowed ( $ ext ) { $ disallowed = ( ( count ( $ this -> disallowedTypes ) > 0 ) && ( in_array ( strtolower ( $ ext ) , $ this -> disallowedTypes ) ) ) ; $ allowed = ( ( count ( $ this -> allowedTypes ) == 0 ) || ( ( count ( $ this -> allowedTypes ) > 0 ) && ( in_array ( strtolower ( $ ext ) , $ this -> allowedTypes ) ) ) ) ; return ( ( ! $ disallowed ) && ( $ allowed ) ) ; } | Determine if a file type is allowed |
29,269 | public function upload ( $ file , $ to = null ) { if ( $ this -> test ( $ file ) ) { if ( null === $ to ) { $ to = $ file [ 'name' ] ; } if ( ! $ this -> overwrite ) { $ to = $ this -> checkFilename ( $ to ) ; } $ this -> uploadedFile = $ to ; $ to = $ this -> uploadDir . DIRECTORY_SEPARATOR . $ to ; if ( move_uploaded_file ( $ file [ 'tmp_name' ] , $ to ) ) { return $ this -> uploadedFile ; } else { $ this -> error = self :: UPLOAD_ERR_UNEXPECTED ; return false ; } } else { return false ; } } | Upload file to the upload dir returns the newly uploaded file |
29,270 | function Save ( $ filename ) { $ result = @ $ this -> domDoc -> save ( $ filename ) ; if ( $ result === false ) throw new \ Exception ( "RSS Feed saviing to '$filename' failed" ) ; return $ result ; } | Saves the rss feed to the given filename |
29,271 | public function write ( $ file , $ data , $ append = false , $ create = true , $ modeBoolean = true ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ this -> _is_resource_writable ( $ file ) ) { throw new Doozr_Exception ( 'The file "' . $ file . '" could not be written. Current operation failed. Check permissions.' ) ; } if ( $ append ) { $ result = $ this -> _append ( $ file , $ data , $ create ) ; } else { $ result = $ this -> _rewrite ( $ file , $ data , $ create ) ; } if ( $ modeBoolean ) { $ result = ( $ result !== false ) ? true : false ; } return $ result ; } | Writes a string of data to a file |
29,272 | public function pwrite ( $ file , $ data , $ append = false , $ create = true , $ modeBoolean = true ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ this -> _is_resource_writable ( $ file ) ) { throw new Doozr_Exception ( 'Could not persistent write to file "' . $ file . '". Current operation failed. Check permissions.' ) ; } $ uid = $ this -> getCurrentResourceInformation ( 'uid' ) ; $ result = $ this -> _fwrite ( $ this -> _getFileHandle ( $ file , ( $ append ? self :: FILE_MODE_WRITE_APPEND : self :: FILE_MODE_WRITE ) ) , $ data ) ; if ( $ modeBoolean ) { $ result = ( $ result !== false ) ? true : false ; } return $ result ; } | Write content to a file in persistent runtimeEnvironment |
29,273 | public function writeBinary ( $ file , $ data , $ create = true , $ append = false , $ modeBoolean = true ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ this -> _is_writable ( $ file ) ) { throw new Doozr_Exception ( 'Could not write binary data to file. The file "' . $ file . '" could not be written. ' . 'Current operation failed. Check permissions.' ) ; } if ( $ append ) { $ result = $ this -> _append ( $ file , $ data , $ create , self :: FILE_BINARY ) ; } else { $ result = $ this -> _rewrite ( $ file , $ data , $ create , self :: FILE_BINARY ) ; } if ( $ modeBoolean ) { $ result = ( $ result !== false ) ? true : false ; } return $ result ; } | Writes binary - data to a file |
29,274 | public function appendBinary ( $ file , $ data , $ create = true , $ writecheck = true ) { $ file = $ this -> _preProcess ( $ file ) ; if ( $ writecheck && ! $ this -> _is_writable ( $ file ) ) { throw new Doozr_Exception ( 'Could not write binary data to file. The file "' . $ file . '" could not be written. ' . 'Current operation failed. Check permissions.' ) ; } return $ this -> _append ( $ file , $ data , $ create , self :: FILE_BINARY ) ; } | Appends binary data to a file |
29,275 | public function append ( $ file , $ data , $ create = true , $ modeBoolean = true ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ create && ! $ this -> _resource_exists ( $ file ) ) { throw new Doozr_Exception ( 'Could not append to file. The file: "' . $ file . '" does not exist.' . 'Current operation failed. Create file first or set parameter $create to TRUE' ) ; } if ( ! $ this -> _is_writable ( $ file ) ) { throw new Doozr_Exception ( 'Could not append to file. Could not write given content to file: "' . $ file . '" ' . 'Current operation failed. Check permissions.' ) ; } $ result = $ this -> _append ( $ file , $ data , $ create ) ; if ( $ modeBoolean ) { $ result = ( $ result >= 0 ) ? true : false ; } return $ result ; } | appends a string to a file |
29,276 | public function readArray ( $ file = null ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ this -> _resource_exists ( $ file ) ) { throw new Doozr_Exception ( 'Could not read file into array. The file: "' . $ file . '" does not exist. ' . 'Current operation failed. Check permissions too.' ) ; } return $ this -> _file ( $ file ) ; } | Reads content from file and return a row - based array |
29,277 | public function parse ( $ file ) { $ file = $ this -> _preProcess ( $ file ) ; if ( ! $ this -> _resource_exists ( $ file ) ) { throw new Doozr_Exception ( 'Could not parse file. The file: "' . $ file . '" does not exist. ' . 'Current operation failed. Check permissions too.' ) ; } return $ this -> _parse ( $ file ) ; } | Reads and parses a PHP file . |
29,278 | protected function _prepareForVfs ( $ resource ) { $ path = dirname ( $ resource ) ; $ path = $ this -> _vfsSlashes ( $ path ) ; if ( $ this -> vfsLastPath != $ path ) { $ this -> vfs -> setup ( $ path ) ; $ this -> vfsLastPath = $ path ; } return $ this -> vfs -> url ( $ resource ) ; } | Prepares a resource for virtual filesystem |
29,279 | protected function setCurrentResourceInformation ( $ information , $ part = null ) { if ( $ part ) { $ this -> currentResourceInformation [ $ part ] = $ information ; } else { $ this -> currentResourceInformation = $ information ; } } | Stores information about the current resource |
29,280 | protected function getResourceInformation ( $ uid , $ part = null ) { if ( $ part ) { return isset ( $ this -> resources [ $ uid ] [ $ part ] ) ? $ this -> resources [ $ uid ] [ $ part ] : false ; } else { return $ this -> resources [ $ uid ] ; } } | Returns information about a resource |
29,281 | protected function _getFileHandle ( $ file , $ mode = self :: FILE_MODE_READ ) { $ uid = $ this -> _getUid ( $ file ) ; if ( ! isset ( $ this -> fileHandle [ $ uid ] ) || $ this -> fileHandle [ $ uid ] [ 'runtimeEnvironment' ] != $ mode ) { $ this -> fileHandle [ $ uid ] = array ( 'runtimeEnvironment' => $ mode , 'getMetaComponents' => $ this -> _fopen ( $ file , $ mode ) ) ; } return $ this -> fileHandle [ $ uid ] [ 'getMetaComponents' ] ; } | Returns a file - getMetaComponents for requested runtimeEnvironment |
29,282 | protected function _append ( $ file , $ data , $ create = false , $ customFlags = 0 ) { return $ this -> _file_put_contents ( $ file , $ data , self :: FILE_APPEND | $ customFlags ) ; } | Appends content to a file under consideration of virtual - fs |
29,283 | protected function _rewrite ( $ file , $ data , $ create = false , $ customFlags = 0 ) { if ( $ create ) { return $ this -> _file_put_contents ( $ file , $ data , $ customFlags ) ; } return false ; } | Writes content to the beginning of a file under consideration of virtual - fs |
29,284 | protected function _preProcess ( $ resource ) { clearstatcache ( ) ; $ uid = $ this -> _getUid ( $ resource ) ; if ( ! isset ( $ this -> resources [ $ uid ] ) ) { $ resource = trim ( $ resource , "\t\r\n\0\x0B" ) ; $ this -> _nullByteCheck ( $ resource ) ; $ this -> resources [ $ uid ] = array ( 'resource' => $ resource , 'uid' => $ uid , 'safe' => true ) ; } $ this -> setCurrentResourceInformation ( $ this -> resources [ $ uid ] ) ; return $ resource ; } | Basic processing of a resource |
29,285 | protected function _is_resource_writable ( $ resource ) { if ( ! $ this -> _resource_exists ( $ resource ) ) { $ realResource = dirname ( $ resource ) ; } else { $ realResource = $ resource ; } if ( ! $ this -> _is_writable ( $ realResource ) ) { return false ; } return true ; } | checks if a file or folder is writable by this class write methods |
29,286 | protected function _unlink ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return unlink ( $ resource ) ; } | unlink - virtual - fs supporting wrapper |
29,287 | protected function _is_file ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return is_file ( $ resource ) ; } | is_file - virtual - fs supporting wrapper |
29,288 | protected function _is_dir ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return is_dir ( $ resource ) ; } | is_dir - virtual - fs supporting wrapper |
29,289 | protected function _file ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return file ( $ resource ) ; } | file - virtual - fs supporting wrapper |
29,290 | protected function _fopen ( $ file , $ mode = self :: FILE_MODE_BINARY , $ use_include_path = false , $ context = null ) { if ( $ this -> isVirtual ) { $ file = $ this -> _prepareForVfs ( $ file ) ; } $ context = ( ! $ context ) ? stream_context_get_default ( ) : $ context ; return fopen ( $ file , $ mode , $ use_include_path , $ context ) ; } | fopen - virtual - fs supporting wrapper |
29,291 | protected function _fwrite ( $ handle , $ data , $ length = self :: PHP_STREAM_COPY_ALL ) { return fwrite ( $ handle , $ data , $ length ) ; } | fwrite - virtual - fs supporting wrapper |
29,292 | protected function _filesize ( $ file ) { if ( $ this -> isVirtual ) { $ file = $ this -> _prepareForVfs ( $ file ) ; } return filesize ( $ file ) ; } | filesize - virtual - fs supporting wrapper |
29,293 | protected function _resource_exists ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return file_exists ( $ resource ) ; } | file_exists - virtual - fs supporting wrapper |
29,294 | protected function _is_writable ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return is_writable ( $ resource ) ; } | is_writable - virtual - fs supporting wrapper |
29,295 | protected function _is_readable ( $ resource ) { if ( $ this -> isVirtual ) { $ resource = $ this -> _prepareForVfs ( $ resource ) ; } return is_readable ( $ resource ) ; } | readable - virtual - fs supporting wrapper |
29,296 | protected function _file_get_contents ( $ file , $ use_include_path = false , $ context = null , $ offset = - 1 , $ maxlen = self :: PHP_STREAM_COPY_ALL ) { if ( $ this -> isVirtual ) { $ file = $ this -> _prepareForVfs ( $ file ) ; } return file_get_contents ( $ file , $ use_include_path , $ context , $ offset , $ maxlen ) ; } | file_get_contents - virtual - fs supporting wrapper |
29,297 | protected function _file_put_contents ( $ file , $ data , $ flags = 0 , $ context = null ) { if ( $ this -> isVirtual ) { $ file = $ this -> _prepareForVfs ( $ file ) ; } return file_put_contents ( $ file , $ data , $ flags , $ context ) ; } | file_put_contents - virtual - fs supporting wrapper |
29,298 | public function isAllowed ( Doozr_Acl_Service $ acl , $ action ) { if ( $ this -> getType ( ) === self :: TYPE_CONSUMER && $ acl -> getType ( ) === self :: TYPE_PROVIDER ) { return ( $ acl -> hasPermission ( $ action ) && $ acl -> grant ( $ this -> getPermissions ( ) , $ action ) ) ; } else { throw new Doozr_Exception_Service ( 'Type mismatch! Only Consumer ca be allowed to access Provider.' ) ; } } | Checks whether the provider can be accessed by this consumer . |
29,299 | public function hasPermission ( $ action ) { if ( $ this -> hasAction ( $ action ) === true ) { $ result = $ this -> grant ( $ this -> getPermissions ( ) , $ action ) ; } else { throw new Doozr_Exception_Service ( 'Action "' . $ action . '" does not exist!' ) ; } return $ result ; } | Checks whether or not the permission as string is allowed by current setup . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.