Skip to content

Commit

Permalink
#285 - removed some unused code from the RendererProviderHTML class
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadevx committed Feb 7, 2017
1 parent 2b14697 commit b5b2e8a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Alpha/View/Renderer/Html/RendererProviderHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ public function createView($fields = array())
{
self::$logger->debug('>>createView(fields=['.var_export($fields, true).'])');

$config = ConfigProvider::getInstance();

// the form ID
$fields['formID'] = stripslashes(get_class($this->BO).'_'.$this->BO->getOID());

Expand Down Expand Up @@ -613,7 +611,7 @@ public static function displayPageHead($controller)
$html = View::loadTemplateFragment('html', 'head.phtml', array('title' => $controller->getTitle(), 'description' => $controller->getDescription(), 'allowCSSOverrides' => $allowCSSOverrides));

if (method_exists($controller, 'during_displayPageHead_callback')) {
$html .= $controller->during_displayPageHead_callback();
$html .= $controller->{'during_displayPageHead_callback'}();
}

$html .= '</head>';
Expand All @@ -631,7 +629,7 @@ public static function displayPageHead($controller)
$html .= '<div class="container">';

if (method_exists($controller, 'insert_CMSDisplayStandardHeader_callback')) {
$html .= $controller->insert_CMSDisplayStandardHeader_callback();
$html .= $controller->{'insert_CMSDisplayStandardHeader_callback'}();
}

self::$logger->debug('<<displayPageHead [HTML]');
Expand Down Expand Up @@ -1013,8 +1011,6 @@ public function renderTextField($name, $label, $mode, $value = '')
{
self::$logger->debug('>>renderTextField(name=['.$name.'], label=['.$label.'], mode=['.$mode.'], value=['.$value.'])');

$config = ConfigProvider::getInstance();

$html = '';

if ($mode == 'create') {
Expand Down Expand Up @@ -1077,8 +1073,6 @@ public function renderStringField($name, $label, $mode, $value = '')
{
self::$logger->debug('>>renderStringField(name=['.$name.'], label=['.$label.'], mode=['.$mode.'], value=['.$value.'])');

$config = ConfigProvider::getInstance();

$html = '';

if ($mode == 'create' || $mode == 'edit') {
Expand All @@ -1102,8 +1096,6 @@ public function renderRelationField($name, $label, $mode, $value = '', $expanded
{
self::$logger->debug('>>renderRelationField(name=['.$name.'], label=['.$label.'], mode=['.$mode.'], value=['.$value.'], expanded=['.$expanded.'], buttons=['.$buttons.'])');

$config = ConfigProvider::getInstance();

$html = '';

$rel = $this->BO->getPropObject($name);
Expand Down

0 comments on commit b5b2e8a

Please sign in to comment.