idx
int64
0
60.3k
question
stringlengths
101
6.21k
target
stringlengths
7
803
21,700
protected function getAvatarUrl ( $ id , $ size ) { $ attachments_fallback_chain = $ this -> getAttachmentFallbackChain ( $ id ) ; foreach ( $ attachments_fallback_chain as $ attachment_id ) { $ image = wp_get_attachment_image_src ( $ attachment_id , $ size ) ; if ( ! empty ( $ image ) ) { return $ image [ 0 ] ; } } return null ; }
Get avatar url
21,701
public function filterAvatar ( $ url , $ id_or_email , $ args ) { if ( ! empty ( $ args [ 'force_default' ] ) ) { return $ url ; } if ( $ this -> default_avatar_id === 0 && empty ( $ this -> avatar_user_meta_keys ) ) { return $ url ; } $ id = $ this -> idOrEmailToId ( $ id_or_email ) ; if ( is_numeric ( $ id ) ) { $ filtered_url = $ this -> getAvatarUrl ( ( int ) $ id , $ this -> getSize ( $ args ) ) ; if ( $ filtered_url !== null ) { $ url = $ filtered_url ; } } return $ url ; }
Filter an avatar url based on the default avatar attachment id and registered meta keys .
21,702
public function collection ( string $ collection , ? string $ format = null ) : string { list ( $ collection , $ extension ) = preg_split ( '/\.(css|js)/' , $ collection , 2 , PREG_SPLIT_DELIM_CAPTURE ) ; $ group = $ extension == 'css' ? 'stylesheets' : 'javascripts' ; return $ this -> serve ( $ collection , $ group , $ format ) ; }
Serve a collection where the group is determined by the the extension .
21,703
public function stylesheets ( string $ collection , ? string $ format = null ) : string { return $ this -> serve ( $ collection , 'stylesheets' , $ format ) ; }
Serve the stylesheets for a given collection .
21,704
public function javascripts ( string $ collection , ? string $ format = null ) : string { return $ this -> serve ( $ collection , 'javascripts' , $ format ) ; }
Serve the javascripts for a given collection .
21,705
public function serve ( string $ collection , string $ group , ? string $ format = null ) : string { if ( ! isset ( $ this -> app [ 'basset' ] [ $ collection ] ) ) { return '<!-- Basset could not find collection: ' . $ collection . ' ; } $ collection = $ this -> app [ 'basset' ] [ $ collection ] ; if ( $ this -> runningInProduction ( ) and $ this -> app [ 'basset.manifest' ] -> has ( $ collection ) ) { if ( $ this -> app [ 'basset.manifest' ] -> get ( $ collection ) -> hasProductionFingerprint ( $ group ) ) { return $ this -> serveProductionCollection ( $ collection , $ group , $ format ) ; } } return $ this -> serveDevelopmentCollection ( $ collection , $ group , $ format ) ; }
Serve a given group for a collection .
21,706
protected function serveProductionCollection ( Collection $ collection , string $ group , ? string $ format ) : string { $ entry = $ this -> getCollectionEntry ( $ collection ) ; $ fingerprint = $ entry -> getProductionFingerprint ( $ group ) ; $ production = $ this -> { 'create' . studly_case ( $ group ) . 'Element' } ( $ this -> prefixBuildPath ( $ fingerprint ) , $ format ) ; return $ this -> formatResponse ( $ this -> serveRawAssets ( $ collection , $ group , $ format ) , $ production ) ; }
Serve a production collection .
21,707
protected function serveDevelopmentCollection ( Collection $ collection , string $ group , ? string $ format ) : string { $ identifier = $ collection -> getIdentifier ( ) ; $ this -> tryDevelopmentBuild ( $ collection , $ group ) ; $ entry = $ this -> getCollectionEntry ( $ collection ) ; $ responses = array ( ) ; foreach ( $ collection -> getAssetsWithRaw ( $ group ) as $ asset ) { if ( ! $ asset -> isRaw ( ) and $ path = $ entry -> getDevelopmentAsset ( $ asset ) ) { $ path = $ this -> prefixBuildPath ( $ identifier . '/' . $ path ) ; } else { $ path = $ asset -> getRelativePath ( ) ; } $ responses [ ] = $ this -> { 'create' . studly_case ( $ group ) . 'Element' } ( $ path , $ format ) ; } return $ this -> formatResponse ( $ responses ) ; }
Serve a development collection .
21,708
protected function serveRawAssets ( Collection $ collection , string $ group , ? string $ format ) : array { $ responses = array ( ) ; foreach ( $ collection -> getAssetsOnlyRaw ( $ group ) as $ asset ) { $ path = $ asset -> getRelativePath ( ) ; $ responses [ ] = $ this -> { 'create' . studly_case ( $ group ) . 'Element' } ( $ path , $ format ) ; } return $ responses ; }
Serve a collections raw assets .
21,709
protected function formatResponse ( ) : string { $ responses = array ( ) ; foreach ( func_get_args ( ) as $ response ) { $ responses = array_merge ( $ responses , ( array ) $ response ) ; } return array_to_newlines ( $ responses ) ; }
Format an array of responses and return a string .
21,710
protected function tryDevelopmentBuild ( Collection $ collection , string $ group ) : void { try { $ this -> app [ 'basset.builder' ] -> buildAsDevelopment ( $ collection , $ group ) ; } catch ( BuildNotRequiredException $ e ) { } $ this -> app [ 'basset.builder.cleaner' ] -> clean ( $ collection -> getIdentifier ( ) ) ; }
Try the development build of a collection .
21,711
protected function prefixBuildPath ( string $ path ) : string { if ( $ buildPath = $ this -> app [ 'config' ] -> get ( 'basset.build_path' ) ) { $ path = "{$buildPath}/{$path}" ; } return $ path ; }
Prefix the build path to a given path .
21,712
protected function createStylesheetsElement ( string $ path , ? string $ format ) : string { return sprintf ( $ format ? : '<link rel="stylesheet" type="text/css" href="%s" />' , $ this -> buildAssetUrl ( $ path ) ) ; }
Create a stylesheets element for the specified path .
21,713
protected function createJavascriptsElement ( string $ path , ? string $ format ) : string { return sprintf ( $ format ? : '<script src="%s"></script>' , $ this -> buildAssetUrl ( $ path ) ) ; }
Create a javascripts element for the specified path .
21,714
public function buildAssetUrl ( string $ path ) : string { return starts_with ( $ path , '//' ) ? $ path : $ this -> app [ 'url' ] -> asset ( $ path ) ; }
Build the URL to an asset .
21,715
final public static function all ( ) : array { static $ all = null ; if ( $ all === null ) { foreach ( ( new \ ReflectionClass ( get_called_class ( ) ) ) -> getConstants ( ) as $ constant ) { $ all [ ] = new static ( $ constant ) ; } } return $ all ; }
Returns an array of all enums .
21,716
public function & Render ( $ typePath = '' , $ relativePath = '' ) { if ( ! $ typePath ) $ typePath = static :: $ scriptsDir ; $ result = '' ; $ relativePath = $ this -> _correctRelativePath ( $ typePath , $ relativePath ) ; $ viewScriptFullPath = static :: GetViewScriptFullPath ( $ typePath , $ relativePath ) ; if ( ! file_exists ( $ viewScriptFullPath ) ) { $ selfClass = version_compare ( PHP_VERSION , '5.5' , '>' ) ? self :: class : __CLASS__ ; throw new \ InvalidArgumentException ( '[' . $ selfClass . "] Template not found in path: `$viewScriptFullPath`." ) ; } $ renderedFullPaths = & $ this -> __protected [ 'renderedFullPaths' ] ; $ renderedFullPaths [ ] = $ viewScriptFullPath ; ob_start ( ) ; include ( $ viewScriptFullPath ) ; $ result = ob_get_clean ( ) ; \ array_pop ( $ renderedFullPaths ) ; return $ result ; }
Render controller template and all necessary layout templates and return rendered result as string reference .
21,717
public function find ( $ name ) { $ name = $ this -> config -> get ( "basset.aliases.assets.{$name}" , $ name ) ; foreach ( array ( 'RemotelyHosted' , 'PackageAsset' , 'WorkingDirectory' , 'PublicPath' , 'AbsolutePath' ) as $ method ) { if ( $ path = $ this -> { 'find' . $ method } ( $ name ) ) { return $ path ; } } throw new AssetNotFoundException ; }
Find and return an assets path .
21,718
public function findPackageAsset ( $ name ) { if ( str_contains ( $ name , '::' ) ) { list ( $ namespace , $ name ) = explode ( '::' , $ name ) ; if ( ! isset ( $ this -> hints [ $ namespace ] ) ) { return ; } $ path = $ this -> prefixPublicPath ( 'packages/' . $ this -> hints [ $ namespace ] . '/' . $ name ) ; if ( $ this -> files -> exists ( $ path ) ) { return $ path ; } } }
Find an asset by looking for a prefixed package namespace .
21,719
public function findWorkingDirectory ( $ name ) { $ path = $ this -> getWorkingDirectory ( ) . '/' . $ name ; if ( $ this -> withinWorkingDirectory ( ) and $ this -> files -> exists ( $ path ) ) { return $ path ; } }
Find an asset by searching in the current working directory .
21,720
public function findPublicPath ( $ name ) { $ path = $ this -> prefixPublicPath ( $ name ) ; if ( $ this -> files -> exists ( $ path ) ) { return $ path ; } }
Find an asset by searching in the public path .
21,721
public function setWorkingDirectory ( $ path ) { $ path = $ this -> prefixDirectoryStack ( $ path ) ; if ( $ this -> files -> exists ( $ path ) ) { return $ this -> directoryStack [ ] = $ path ; } throw new DirectoryNotFoundException ( "Directory [{$path}] could not be found." ) ; }
Set the working directory path .
21,722
public function prefixDirectoryStack ( $ path ) { if ( $ this -> withinWorkingDirectory ( ) ) { return rtrim ( $ this -> getWorkingDirectory ( ) . '/' . ltrim ( $ path , '/' ) , '/' ) ; } return $ this -> prefixPublicPath ( $ path ) ; }
Prefix the last directory from the stack or the public path if not within a working directory
21,723
public static function assertDirectoryNotEmpty ( $ filename , string $ message = '' ) { self :: assertThatConstraint ( $ filename , $ message , 'assertDirectoryNotEmpty' , new LogicalNot ( new DirectoryEmptyConstraint ( ) ) ) ; }
Assert that a directory exists and is not empty .
21,724
public static function assertFileIsNotLink ( $ filename , string $ message = '' ) { self :: assertThatConstraint ( $ filename , $ message , 'assertFileIsNotLink' , new LogicalNot ( new FileIsLinkConstraint ( ) ) ) ; }
Assert that a file is not a symbolic link .
21,725
protected function constructVarAdvConf ( & $ advCfg ) { $ methodParam = static :: CONFIG_METHOD ; if ( isset ( $ advCfg [ $ methodParam ] ) ) $ this -> method = strtoupper ( ( string ) $ advCfg [ $ methodParam ] ) ; $ redirectParam = static :: CONFIG_REDIRECT ; if ( isset ( $ advCfg [ $ redirectParam ] ) ) $ this -> redirect = ( string ) $ advCfg [ $ redirectParam ] ; $ absoluteParam = static :: CONFIG_ABSOLUTE ; if ( isset ( $ advCfg [ $ absoluteParam ] ) ) $ this -> absolute = ( bool ) $ advCfg [ $ absoluteParam ] ; }
If route is initialized by each constructor function arguments initialize method redirect and absolute .
21,726
protected static function convertToType ( $ rawValue , $ typeStr ) { $ conversionResult = FALSE ; $ typeStr = trim ( $ typeStr , '\\' ) ; if ( $ typeStr == 'DateTime' ) { $ dateTimeFormat = 'Y-m-d H:i:s' ; if ( is_numeric ( $ rawValue ) ) { $ rawValueStr = str_replace ( [ '+' , '-' , '.' ] , '' , strval ( $ rawValue ) ) ; $ secData = mb_substr ( $ rawValueStr , 0 , 10 ) ; $ dateTimeStr = date ( $ dateTimeFormat , intval ( $ secData ) ) ; if ( strlen ( $ rawValueStr ) > 10 ) $ dateTimeStr .= '.' . mb_substr ( $ rawValueStr , 10 ) ; } else { $ dateTimeStr = strval ( $ rawValue ) ; if ( strpos ( $ dateTimeStr , '-' ) === FALSE ) { $ dateTimeFormat = substr ( $ dateTimeFormat , 6 ) ; } else if ( strpos ( $ dateTimeStr , ':' ) === FALSE ) { $ dateTimeFormat = substr ( $ dateTimeFormat , 0 , 5 ) ; } if ( strpos ( $ dateTimeStr , '.' ) !== FALSE ) $ dateTimeFormat .= '.u' ; } $ dateTime = date_create_from_format ( $ dateTimeFormat , $ dateTimeStr ) ; if ( $ dateTime !== FALSE ) { $ rawValue = $ dateTime ; $ conversionResult = TRUE ; } } else { if ( settype ( $ rawValue , $ typeStr ) ) $ conversionResult = TRUE ; } return [ $ conversionResult , $ rawValue ] ; }
Try to convert database value into target type .
21,727
protected static function getKeyConversionMethods ( $ keysConversionFlags = \ MvcCore \ IModel :: KEYS_CONVERSION_CASE_SENSITIVE ) { $ flagsAndConversionMethods = [ $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_UNDERSCORES_TO_PASCALCASE => 'keyConversionUnderscoresToPascalcase' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_UNDERSCORES_TO_CAMELCASE => 'keyConversionUnderscoresToCamelcase' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_PASCALCASE_TO_UNDERSCORES => 'keyConversionPascalcaseToUnderscores' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_PASCALCASE_TO_CAMELCASE => 'keyConversionPascalcaseToCamelcase' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_CAMELCASE_TO_UNDERSCORES => 'keyConversionCamelcaseToUnderscores' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_CAMELCASE_TO_PASCALCASE => 'keyConversionCamelcaseToPascalcase' , $ keysConversionFlags & \ MvcCore \ IModel :: KEYS_CONVERSION_CASE_INSENSITIVE => 'keyConversionCaseInsensitive' , ] ; unset ( $ flagsAndConversionMethods [ 0 ] ) ; return $ flagsAndConversionMethods ; }
Return protected static key conversion methods array by given conversion flag .
21,728
protected static function keyConversionCaseInsensitive ( $ key , & $ toolsClass , & $ csKeysMap ) { $ keyPos = stripos ( $ csKeysMap , ',' . $ key . ',' ) ; if ( $ keyPos === FALSE ) return $ key ; return substr ( $ csKeysMap , $ keyPos + 1 , strlen ( $ key ) ) ; }
Return key proper case sensitive value by given case sensitive map .
21,729
public static function isJpegFile ( $ filename ) { try { $ image = new ImageFile ( $ filename ) ; if ( strtolower ( $ image -> getMime ( ) ) !== @ image_type_to_mime_type ( IMAGETYPE_JPEG ) ) { return false ; } return true ; } catch ( \ RuntimeException $ ex ) { return false ; } }
Check if the given file is jpeg file
21,730
public function getPortableType ( ) { $ type = false ; switch ( $ this -> getFieldXType ( ) ) { case 'modx-combo-template' : $ type = 'template' ; break ; case 'modx-combo-source' : $ type = 'media-source' ; break ; default : if ( isset ( $ this -> portable_settings [ $ this -> getFieldKey ( ) ] ) ) { $ type = $ this -> portable_settings [ $ this -> getFieldKey ( ) ] ; } } return $ type ; }
Don t call this until the key is set or setting is loaded
21,731
public function setCoreAccessPoliciesVersion ( $ value ) { $ this -> setFieldName ( 'access_policies_version' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Access Policy Schema Version ~ The version of the Access Policy system . DO NOT CHANGE .
21,732
public function setCoreAllowManagerLoginForgotPassword ( $ value ) { $ this -> setFieldName ( 'allow_manager_login_forgot_password' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Allow Forgot Password in Manager Login Screen ~ Setting this to No will disable the forgot password ability on the manager login screen .
21,733
public function setCoreAllowMultipleEmails ( $ value ) { $ this -> setFieldName ( 'allow_multiple_emails' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Allow Duplicate Emails for Users ~ If enabled Users may share the same email address .
21,734
public function setCoreAllowTagsInPost ( $ value ) { $ this -> setFieldName ( 'allow_tags_in_post' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Allow Tags in POST ~ If false all POST variables will be stripped of HTML script tags numeric entities and MODX tags . MODX recommends to leave this set to false for Contexts other than mgr where it is set to true by default .
21,735
public function setCoreAnonymousSessions ( $ value ) { $ this -> setFieldName ( 'anonymous_sessions' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Anonymous Sessions ~ If disabled only authenticated users will have access to a PHP session . This can reduce overhead for anonymous users and the load they impose on a MODX site if they do not need access to a unique session . If session_enabled is false this setting has no effect as sessions would never be available .
21,736
public function setCoreArchiveWith ( $ value ) { $ this -> setFieldName ( 'archive_with' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Force PCLZip Archives ~ If true will use PCLZip instead of ZipArchive as the zip extension . Turn this on if you are getting extractTo errors or are having problems with unzipping in Package Management .
21,737
public function setCoreAutoCheckPkgUpdates ( $ value ) { $ this -> setFieldName ( 'auto_check_pkg_updates' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Automatic Check for Package Updates ~ If Yes MODX will automatically check for updates for packages in Package Management . This may slow the loading of the grid .
21,738
public function setCoreAutoCheckPkgUpdatesCacheExpire ( $ value ) { $ this -> setFieldName ( 'auto_check_pkg_updates_cache_expire' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Cache Expiration Time for Automatic Package Updates Check ~ The number of minutes that Package Management will cache the results for checking for package updates .
21,739
public function setCoreAutoIsfolder ( $ value ) { $ this -> setFieldName ( 'auto_isfolder' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Set container automatically ~ If set to yes container property will be changed automatically .
21,740
public function setCoreAutoMenuindex ( $ value ) { $ this -> setFieldName ( 'auto_menuindex' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Menu indexing default ~ Select Yes to turn on automatic menu index incrementing by default .
21,741
public function setCoreAutomaticAlias ( $ value ) { $ this -> setFieldName ( 'automatic_alias' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Automatically generate alias ~ Select Yes to have the system automatically generate an alias based on the Resource s page title when saving .
21,742
public function setCoreBaseHelpUrl ( $ value ) { $ this -> setFieldName ( 'base_help_url' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Base Help URL ~ The base URL by which to build the Help links in the top right of pages in the manager .
21,743
public function setCoreCacheAliasMap ( $ value ) { $ this -> setFieldName ( 'cache_alias_map' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Context Alias Map Cache ~ When enabled all Resource URIs are cached into the Context . Enable on smaller sites and disable on larger sites for better performance .
21,744
public function setCoreCacheContextSettings ( $ value ) { $ this -> setFieldName ( 'cache_context_settings' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Context Setting Cache ~ When enabled context settings will be cached to reduce load times .
21,745
public function setCoreCacheDb ( $ value ) { $ this -> setFieldName ( 'cache_db' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Database Cache ~ When enabled objects and raw result sets from SQL queries are cached to significantly reduce database loads .
21,746
public function setCoreCacheDbSession ( $ value ) { $ this -> setFieldName ( 'cache_db_session' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Database Session Cache ~ When enabled and cache_db is enabled database sessions will be cached in the DB result - set cache .
21,747
public function setCoreCacheDefault ( $ value ) { $ this -> setFieldName ( 'cache_default' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Cacheable default ~ Select Yes to make all new Resources cacheable by default .
21,748
public function setCoreCacheDisabled ( $ value ) { $ this -> setFieldName ( 'cache_disabled' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Disable Global Cache Options ~ Select Yes to disable all MODX caching features . MODX does not recommend disabling caching .
21,749
public function setCoreCacheFormat ( $ value ) { $ this -> setFieldName ( 'cache_format' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Caching Format to Use ~ 0 = PHP 1 = JSON 2 = serialize . One of the formats
21,750
public function setCoreCacheHandler ( $ value ) { $ this -> setFieldName ( 'cache_handler' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Caching Handler Class ~ The class name of the type handler to use for caching .
21,751
public function setCoreCacheLangJs ( $ value ) { $ this -> setFieldName ( 'cache_lang_js' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Cache Lexicon JS Strings ~ If set to true this will use server headers to cache the lexicon strings loaded into JavaScript for the manager interface .
21,752
public function setCoreCacheLexiconTopics ( $ value ) { $ this -> setFieldName ( 'cache_lexicon_topics' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Cache Lexicon Topics ~ When enabled all Lexicon Topics will be cached so as to greatly reduce load times for Internationalization functionality . MODX strongly recommends leaving this set to Yes .
21,753
public function setCoreCacheNoncoreLexiconTopics ( $ value ) { $ this -> setFieldName ( 'cache_noncore_lexicon_topics' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Cache Non - Core Lexicon Topics ~ When disabled non - core Lexicon Topics will be not be cached . This is useful to disable when developing your own Extras .
21,754
public function setCoreCacheResource ( $ value ) { $ this -> setFieldName ( 'cache_resource' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Partial Resource Cache ~ Partial resource caching is configurable by resource when this feature is enabled . Disabling this feature will disable it globally .
21,755
public function setCoreCacheSystemSettings ( $ value ) { $ this -> setFieldName ( 'cache_system_settings' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable System Setting Cache ~ When enabled system settings will be cached to reduce load times . MODX recommends leaving this on .
21,756
public function setCoreClearCacheRefreshTrees ( $ value ) { $ this -> setFieldName ( 'clear_cache_refresh_trees' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Refresh Trees on Site Cache Clear ~ When enabled will refresh the trees after clearing the site cache .
21,757
public function setCoreCompressCss ( $ value ) { $ this -> setFieldName ( 'compress_css' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Use Compressed CSS ~ When this is enabled MODX will use a compressed version of its CSS stylesheets in the manager interface .
21,758
public function setCoreCompressJs ( $ value ) { $ this -> setFieldName ( 'compress_js' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Use Compressed JavaScript Libraries ~ When this is enabled MODX will serve a compressed version of the core scripts file .
21,759
public function setCoreCompressJsMaxFiles ( $ value ) { $ this -> setFieldName ( 'compress_js_max_files' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Maximum JavaScript Files Compression Threshold ~ The maximum number of JavaScript files MODX will attempt to compress at once when compress_js is on . Set to a lower number if you are experiencing issues with Google Minify in the manager .
21,760
public function setCoreConfirmNavigation ( $ value ) { $ this -> setFieldName ( 'confirm_navigation' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Confirm Navigation with unsaved changes ~ When this is enabled the user will be prompted to confirm their intention if there are unsaved changes .
21,761
public function setCoreContainerSuffix ( $ value ) { $ this -> setFieldName ( 'container_suffix' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Container Suffix ~ The suffix to append to Resources set as containers when using FURLs .
21,762
public function setCoreContextTreeSort ( $ value ) { $ this -> setFieldName ( 'context_tree_sort' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Enable Sorting of Contexts in Resource Tree ~ If set to Yes Contexts will be alphanumerically sorted in the left - hand Resources tree .
21,763
public function setCoreContextTreeSortby ( $ value ) { $ this -> setFieldName ( 'context_tree_sortby' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Sort Field of Contexts in Resource Tree ~ The field to sort Contexts by in the Resources tree if sorting is enabled .
21,764
public function setCoreContextTreeSortdir ( $ value ) { $ this -> setFieldName ( 'context_tree_sortdir' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Sort Direction of Contexts in Resource Tree ~ The direction to sort Contexts in the Resources tree if sorting is enabled .
21,765
public function setCoreCultureKey ( $ value ) { $ this -> setFieldName ( 'cultureKey' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Language ~ Select the language for all non - manager Contexts including web .
21,766
public function setCoreDateTimezone ( $ value ) { $ this -> setFieldName ( 'date_timezone' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Time Zone ~ Controls the default timezone setting for PHP date functions if not empty . If empty and the PHP date . timezone ini setting is not set in your environment UTC will be assumed .
21,767
public function setCoreDefaultContentType ( $ value ) { $ this -> setFieldName ( 'default_content_type' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Content Type ~ Select the default Content Type you wish to use for new Resources . You can still select a different Content Type in the Resource editor ; this setting just pre - selects one of your Content Types for you .
21,768
public function setCoreDefaultContext ( $ value ) { $ this -> setFieldName ( 'default_context' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Context ~ Select the default Context you wish to use for new Resources .
21,769
public function setCoreDefaultDuplicatePublishOption ( $ value ) { $ this -> setFieldName ( 'default_duplicate_publish_option' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Duplicate Resource Publishing Option ~ The default selected option when duplicating a Resource . Can be either unpublish to unpublish all duplicates publish to publish all duplicates or preserve to preserve the publish state based on the duplicated Resource .
21,770
public function setCoreDefaultMediaSource ( $ value ) { $ this -> setFieldName ( 'default_media_source' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Media Source ~ The default Media Source to load .
21,771
public function setCoreDefaultPerPage ( $ value ) { $ this -> setFieldName ( 'default_per_page' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Per Page ~ The default number of results to show in grids throughout the manager .
21,772
public function setCoreDefaultTemplate ( $ value ) { $ this -> setFieldName ( 'default_template' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default Template ~ Select the default Template you wish to use for new Resources . You can still select a different template in the Resource editor this setting just pre - selects one of your Templates for you .
21,773
public function setCoreDefaultUsername ( $ value ) { $ this -> setFieldName ( 'default_username' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Default username ~ Default username for an unauthenticated user .
21,774
public function setCoreEditorCssSelectors ( $ value ) { $ this -> setFieldName ( 'editor_css_selectors' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
CSS Selectors for Editor ~ A comma - separated list of CSS selectors for a richtext editor .
21,775
public function setCoreEmailsender ( $ value ) { $ this -> setFieldName ( 'emailsender' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Registration Email From Address ~ Here you can specify the email address used when sending Users their usernames and passwords .
21,776
public function setCoreEmailsubject ( $ value ) { $ this -> setFieldName ( 'emailsubject' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Registration Email Subject ~ The subject line for the default signup email when a User is registered .
21,777
public function setCoreFailedLoginAttempts ( $ value ) { $ this -> setFieldName ( 'failed_login_attempts' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Failed Login Attempts ~ The number of failed login attempts a User is allowed before becoming blocked .
21,778
public function setCoreFeEditorLang ( $ value ) { $ this -> setFieldName ( 'fe_editor_lang' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Front - end Editor Language ~ Choose a language for the editor to use when used as a front - end editor .
21,779
public function setCoreFeedModxNews ( $ value ) { $ this -> setFieldName ( 'feed_modx_news' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
MODX News Feed URL ~ Set the URL for the RSS feed for the MODX News panel in the manager .
21,780
public function setCoreFeedModxNewsEnabled ( $ value ) { $ this -> setFieldName ( 'feed_modx_news_enabled' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
MODX News Feed Enabled ~ If No MODX will hide the News feed in the welcome section of the manager .
21,781
public function setCoreFeedModxSecurity ( $ value ) { $ this -> setFieldName ( 'feed_modx_security' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
MODX Security Notices Feed URL ~ Set the URL for the RSS feed for the MODX Security Notices panel in the manager .
21,782
public function setCoreFeedModxSecurityEnabled ( $ value ) { $ this -> setFieldName ( 'feed_modx_security_enabled' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
MODX Security Feed Enabled ~ If No MODX will hide the Security feed in the welcome section of the manager .
21,783
public function setCoreForwardMergeExcludes ( $ value ) { $ this -> setFieldName ( 'forward_merge_excludes' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
sendForward Exclude Fields on Merge ~ A Symlink merges non - empty field values over the values in the target Resource ; using this comma - delimited list of excludes prevents specified fields from being overridden by the Symlink .
21,784
public function setCoreFriendlyAliasLowercaseOnly ( $ value ) { $ this -> setFieldName ( 'friendly_alias_lowercase_only' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Lowercase Aliases ~ Determines whether to allow only lowercase characters in a Resource alias .
21,785
public function setCoreFriendlyAliasMaxLength ( $ value ) { $ this -> setFieldName ( 'friendly_alias_max_length' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Maximum Length ~ If greater than zero the maximum number of characters to allow in a Resource alias . Zero equals unlimited .
21,786
public function setCoreFriendlyAliasRestrictChars ( $ value ) { $ this -> setFieldName ( 'friendly_alias_restrict_chars' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Character Restriction Method ~ The method used to restrict characters used in a Resource alias . pattern allows a RegEx pattern to be provided legal allows any legal URL characters alpha allows only letters of the alphabet and alphanumeric allows only letters and numbers .
21,787
public function setCoreFriendlyAliasRestrictCharsPattern ( $ value ) { $ this -> setFieldName ( 'friendly_alias_restrict_chars_pattern' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Character Restriction Pattern ~ A valid RegEx pattern for restricting characters used in a Resource alias .
21,788
public function setCoreFriendlyAliasStripElementTags ( $ value ) { $ this -> setFieldName ( 'friendly_alias_strip_element_tags' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Strip Element Tags ~ Determines if Element tags should be stripped from a Resource alias .
21,789
public function setCoreFriendlyAliasTranslitClassPath ( $ value ) { $ this -> setFieldName ( 'friendly_alias_translit_class_path' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Transliteration Service Class Path ~ The model package location where the FURL Alias Transliteration Service Class will be loaded from .
21,790
public function setCoreFriendlyAliasTrimChars ( $ value ) { $ this -> setFieldName ( 'friendly_alias_trim_chars' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Trim Characters ~ Characters to trim from the ends of a provided Resource alias .
21,791
public function setCoreFriendlyAliasWordDelimiter ( $ value ) { $ this -> setFieldName ( 'friendly_alias_word_delimiter' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Word Delimiter ~ The preferred word delimiter for friendly URL alias slugs .
21,792
public function setCoreFriendlyAliasWordDelimiters ( $ value ) { $ this -> setFieldName ( 'friendly_alias_word_delimiters' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
FURL Alias Word Delimiters ~ Characters which represent word delimiters when processing friendly URL alias slugs . These characters will be converted and consolidated to the preferred FURL alias word delimiter .
21,793
public function setCoreFriendlyUrls ( $ value ) { $ this -> setFieldName ( 'friendly_urls' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Use Friendly URLs ~ This allows you to use search engine friendly URLs with MODX . Please note this only works for MODX installations running on Apache and you ll need to write an . htaccess file for this to work . See the . htaccess file included in the distribution for more info .
21,794
public function setCoreGlobalDuplicateUriCheck ( $ value ) { $ this -> setFieldName ( 'global_duplicate_uri_check' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Check for Duplicate URIs Across All Contexts ~ Select Yes to make duplicate URI checks include all Contexts in the search . Otherwise only the Context the Resource is being saved in is checked .
21,795
public function setCoreHidemenuDefault ( $ value ) { $ this -> setFieldName ( 'hidemenu_default' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Hide From Menus Default ~ Select Yes to make all new resources hidden from menus by default .
21,796
public function setCoreInlineHelp ( $ value ) { $ this -> setFieldName ( 'inline_help' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Show Inline Help Text for Fields ~ If Yes then fields will display their help text directly below the field . If No all fields will have tooltip - based help .
21,797
public function setCoreLockTtl ( $ value ) { $ this -> setFieldName ( 'lock_ttl' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Lock Time - to - Live ~ The number of seconds a lock on a Resource will remain for if the user is inactive .
21,798
public function setCoreLogSnippetNotFound ( $ value ) { $ this -> setFieldName ( 'log_snippet_not_found' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
setting_log_snippet_not_found ~ setting_log_snippet_not_found_desc
21,799
public function setCoreMailEncoding ( $ value ) { $ this -> setFieldName ( 'mail_encoding' ) ; $ this -> loadObject ( true ) ; $ this -> setFieldValue ( $ value ) ; return $ this ; }
Mail Encoding ~ Sets the Encoding of the message . Options for this are 8bit 7bit binary base64 and quoted - printable .