@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | protected $component; |
| 20 | 20 | |
| 21 | - public function setComponent( AbstractViewComponent $component ) |
|
| 21 | + public function setComponent(AbstractViewComponent $component) |
|
| 22 | 22 | { |
| 23 | 23 | $this->component = $component; |
| 24 | 24 | } |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | * @param bool $onlyComponentOutput |
| 31 | 31 | * @return string A URL or URI |
| 32 | 32 | */ |
| 33 | - public function url( $execMethod, $args = [ ], $onlyComponentOutput = false ) // $onlyComponentOutput Not used in this implementation but necessary for subclasses |
|
| 33 | + public function url($execMethod, $args = [ ], $onlyComponentOutput = false) // $onlyComponentOutput Not used in this implementation but necessary for subclasses |
|
| 34 | 34 | { |
| 35 | 35 | // $onlyComponentOutput is not used in this implementation but may be by sub-classes |
| 36 | - $args[ 'exec' ] = $this->component->getExecPath( $execMethod ); |
|
| 37 | - $qs = http_build_query( $args ); |
|
| 36 | + $args[ 'exec' ] = $this->component->getExecPath($execMethod); |
|
| 37 | + $qs = http_build_query($args); |
|
| 38 | 38 | return "?{$qs}"; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | return <<<EOS |
| 70 | 70 | <form method="{$method}" action=""{$formID}{$onSubmit} enctype="{$encType}"> |
| 71 | - <input type="hidden" name="exec" value="{$this->component->getExecPath( $execMethod )}"> |
|
| 71 | + <input type="hidden" name="exec" value="{$this->component->getExecPath($execMethod)}"> |
|
| 72 | 72 | {$formBody} |
| 73 | 73 | </form> |
| 74 | 74 | EOS; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | function callStatic($class, $function, $args = array()) |
| 85 | 85 | { |
| 86 | 86 | if (class_exists($class) && method_exists($class, $function)) { |
| 87 | - return call_user_func_array( array( $class, $function ), $args ); |
|
| 87 | + return call_user_func_array(array($class, $function), $args); |
|
| 88 | 88 | } |
| 89 | 89 | return null; |
| 90 | 90 | } |
@@ -98,14 +98,14 @@ discard block |
||
| 98 | 98 | * @param array $anchorAttrs |
| 99 | 99 | * @return string |
| 100 | 100 | */ |
| 101 | - public function replaceElementUsingLink( $execMethod, $args = [ ], $targetDiv, $linkText, $anchorAttrs = [ ] ) |
|
| 101 | + public function replaceElementUsingLink($execMethod, $args = [ ], $targetDiv, $linkText, $anchorAttrs = [ ]) |
|
| 102 | 102 | { |
| 103 | - $url = $this->url( $execMethod, $args, true ); |
|
| 103 | + $url = $this->url($execMethod, $args, true); |
|
| 104 | 104 | $attrs = [ ]; |
| 105 | 105 | foreach ($anchorAttrs as $k => $v) { |
| 106 | 106 | $attrs[ ] = "{$k}='{$v}'"; |
| 107 | 107 | } |
| 108 | - $attrsStr = implode( ' ', $attrs ); |
|
| 108 | + $attrsStr = implode(' ', $attrs); |
|
| 109 | 109 | return <<<EOS |
| 110 | 110 | <script type="application/javascript"> |
| 111 | 111 | if( typeof(execLink) != "function" ){ |
@@ -138,11 +138,11 @@ discard block |
||
| 138 | 138 | * @param string $encType |
| 139 | 139 | * @return string |
| 140 | 140 | */ |
| 141 | - public function replaceElementUsingForm( $execMethod, $method, $formBody, $targetDiv, $formID, $encType = 'application/x-www-form-urlencoded' ) |
|
| 141 | + public function replaceElementUsingForm($execMethod, $method, $formBody, $targetDiv, $formID, $encType = 'application/x-www-form-urlencoded') |
|
| 142 | 142 | { |
| 143 | 143 | return <<<EOS |
| 144 | - {$this->wrapForm( $execMethod, $method, $formBody, true, $formID, |
|
| 145 | - "execForm( this, \"{$targetDiv}\" ); return false;", $encType )} |
|
| 144 | + {$this->wrapForm($execMethod, $method, $formBody, true, $formID, |
|
| 145 | + "execForm( this, \"{$targetDiv}\" ); return false;", $encType)} |
|
| 146 | 146 | <script type="application/javascript"> |
| 147 | 147 | if( typeof(execForm) != "function" ){ |
| 148 | 148 | var execForm = function( form, targetDiv ){ |