Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
<?php
/**
* Component
*
* @package restrict-content-pro
* @copyright Copyright (c) 2020, Sandhills Development, LLC
* @license GPL2+
* @since 3.4
*/
namespace RCP;
/**
* Class Component
*
* @package RCP
*/
class Component extends Base_Object {
/**
* Array of interface objects
*
* @since 3.4
* @var array
*/
private $interfaces = array();
/**
* Returns an interface object
*
* @param string $key Interface key
*
* @since 3.4
* @return object|false
*/
public function get_interface( $key ) {
return isset( $this->interfaces[ $key ] ) ? $this->interfaces[ $key ] : false;
}
/**
* Set up interfaces
*
* @param array $args
*
* @since 3.4
*/
protected function set_vars( $args = array() ) {
$keys = array(
'schema',
'table',
'query',
'object',
'meta'
);
foreach ( $args as $key => $value ) {
if ( in_array( $key, $keys, true ) && class_exists( $value ) ) {
$this->interfaces[ $key ] = new $value;
} else {
$this->{$key} = $value;
}
}
}
}