Location: PHPKode > scripts > Redstart Templating > Redstart-Templating-master/Redstart/Templating/Core/Plugin/System.php
<?php

namespace Redstart\Templating\Core\Plugin;

use Redstart\Templating\Core\System\OptionExtender;
use Redstart\Templating\Plugin\Plugin;

/**
 * System Plugin 
 *
 * @package Redstart    
 * @subpackage Redstart_Templating_Core_System
 *
 * @author Hyyan Abo Fakher
 * @since Redstart 1.0
 * @version 1.0
 */
class System extends Plugin {

    /**
     * Option Extender
     * @var \Redstart\Templating\Core\System\OptionExtender 
     */
    protected $optionExtender;

    /**
     * Extende default options array with the given options array
     * 
     * @param array $default array of defaults options
     * @param array $options array of options to extend the default options
     * @return array
     */
    public function option(array $default, array $options) {
        if (!$this->optionExtender) {
            $this->optionExtender = new OptionExtender();
        }
        return $this->optionExtender
                        ->reset()
                        ->setDefaults($default)
                        ->extend($options)
                        ->getOption();
    }

    /**
     * Get plugin name
     * @return string
     */
    public function getName() {
        return 'sys';
    }

}

Return current item: Redstart Templating