Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
deprecated
/
src
/
presenters
/
admin
/
File Content:
BundleWriter-20260623161641.php
<?php /** * */ class Loco_config_BundleWriter implements JsonSerializable { /** * @var Loco_package_Bundle */ private $bundle; /** * Initialize config from the bundle it will describe */ public function __construct( Loco_package_Bundle $bundle ){ $this->bundle = $bundle; } /** * @return string XML source */ public function toXml(){ $model = new Loco_config_XMLModel; $dom = $this->compile($model); return $dom->saveXML(); } /** * @return array */ public function toArray(){ $model = new Loco_config_ArrayModel; $dom = $this->compile($model); return $dom->export(); } /** * @return Loco_mvc_PostParams */ public function toForm(){ $model = new Loco_config_FormModel; $dom = $this->compile($model); return $model->getPost(); } /** * Alias of toArray implementing JsonSerializable * @return array */ public function jsonSerialize(){ return $this->toArray(); } /** * Agnostic compilation of any config data type * @return LocoConfigDocumentInterface */ private function compile( Loco_config_Model $model ){ $bundle = $this->bundle; $model->setDirectoryPath( $bundle->getDirectoryPath() ); $systemTargets = $bundle->getSystemTargets(); $dom = $model->getDom(); $root = $dom->appendChild( $dom->createElement('bundle') ); $root->setAttribute( 'name', $bundle->getName() ); /*/ additional headers for information only (not read back in) if( $value = $bundle->getHeaderInfo()->getVendorHost() ){ $root->setAttribute( 'vendor', $value ); }*/ foreach( $bundle->exportGrouped() as $domainName => $projects ){ $domainElement = $root->appendChild( $dom->createElement('domain') ); $domainElement->setAttribute( 'name', $domainName ); /* @var $proj Loco_package_Project */ foreach( $projects as $proj ){ $projElement = $domainElement->appendChild( $dom->createElement('project') ); // add project name even if it's the same as the bundle name // when loading however, missing name will default to bundle name $value = $proj->getName() or $value = $bundle->getName(); $projElement->setAttribute( 'name', $value ); // add project slug even if it's the same as the domain name $value = $proj->getSlug(); $projElement->setAttribute( 'slug', $value ); // <source> // zero or more source file locations $sourcesElement = $dom->createElement('source'); /* @var $file Loco_fs_Directory */ foreach( $proj->getConfiguredSources() as $file ){ $sourcesElement->appendChild( $model->createFileElement($file) ); } // zero or more excluded source paths $excludeElement = $dom->createElement('exclude'); foreach( $proj->getConfiguredSourcesExcluded() as $file ){ $excludeElement->appendChild( $model->createFileElement($file) ); } if( $excludeElement->hasChildNodes() ){ $sourcesElement->appendChild($excludeElement); } if( $sourcesElement->hasChildNodes() ){ $projElement->appendChild( $sourcesElement ); } // <target> // add zero or more target locations $targetsElement = $dom->createElement('target'); /* @var $file Loco_fs_Directory */ foreach( $proj->getConfiguredTargets() as $file ){ if( ! in_array( $file->getPath(), $systemTargets, true ) ){ $targetsElement->appendChild( $model->createFileElement($file) ); } } // zero or more excluded targets $excludeElement = $dom->createElement('exclude'); foreach( $proj->getConfiguredTargetsExcluded() as $file ){ $excludeElement->appendChild( $model->createFileElement($file) ); } if( $excludeElement->hasChildNodes() ){ $targetsElement->appendChild($excludeElement); } if( $targetsElement->hasChildNodes() ){ $projElement->appendChild( $targetsElement ); } // <template> // add single POT template location if( $file = $proj->getPot() ){ $templateElement = $projElement->appendChild( $dom->createElement('template') ); $templateElement->appendChild( $model->createFileElement($file) ); // template may be protected from end-user tampering if( $proj->isPotLocked() ){ $templateElement->setAttribute('locked','true'); } } } } // Write bundle-level path exclusions $excludeElement = $dom->createElement('exclude'); foreach( $bundle->getExcludedLocations() as $file ){ $excludeElement->appendChild( $model->createFileElement($file) ); } if( $excludeElement->hasChildNodes() ){ $root->appendChild( $excludeElement ); } return $dom; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
BundleWriter-20260623161641.php
5687 bytes
0644
BundleWriter.php
5687 bytes
0644
DownloadConfController-20260706154817.php
945 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
class-metabox-formatter-20260705195827.php
12602 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-opengraph-oembed-20260623144901.php
1126 bytes
0644
class-opengraph-oembed.php
1126 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-rewrite.php
7140 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-taxonomy-columns-20260706012610.php
7324 bytes
0644
class-taxonomy-columns.php
7324 bytes
0644
class-wpseo-statistics-20260703220502.php
1443 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
class.pack.database.php
30838 bytes
0644
dashboard-1650-rtl.css
1634 bytes
0644
description-presenter-20260623011438.php
1026 bytes
0644
duplicator-20260707223259.php
1781 bytes
0644
duplicator-en_US.mo
582 bytes
0644
duplicator-main-20260623233136.php
26907 bytes
0644
duplicator-main.php
26907 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
environment-helper.php
596 bytes
0644
estimated-reading-time-20260703220613.php
1111 bytes
0644
exceptions.php
708 bytes
0644
image-presenter.php
2093 bytes
0644
inc.data-20260706132915.php
5121 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
157663 bytes
0644
indexation-list-item-presenter.php
982 bytes
0644
indexation-modal-presenter-20260623072105.php
767 bytes
0644
indexation-modal-presenter.php
767 bytes
0644
indexation-permalink-warning-presenter.php
982 bytes
0644
indexation-warning-presenter.php
1652 bytes
0644
link-count-indexing-list-item-presenter.php
805 bytes
0644
link-count-indexing-modal-presenter.php
785 bytes
0644
loco.xml
657 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
title-presenter.php
1077 bytes
0644
values-helper.php
2652 bytes
0644
wordpress-seo-es_ES-20260707102352.json
25583 bytes
0644
wordpress-seo-es_ES.json
25583 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-es_CR.json
14212 bytes
0644
wordpress-seojs-fi.json
19387 bytes
0644
wordpress-seojs-gl_ES.json
20143 bytes
0644
wordpress-seojs-it_IT.json
20244 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
wp-query-wrapper.php
834 bytes
0644
wpseo-functions.php
11305 bytes
0644
N4ST4R_ID | Naxtarrr