@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -98,8 +98,12 @@ |
||
| 98 | 98 | $element = parent::getDOM($doc, $majorVersion, $minorVersion); |
| 99 | 99 | $element->setAttribute('row', $this->_row); |
| 100 | 100 | $element->setAttribute('col', $this->_col); |
| 101 | - if ($this->_inputValue) $element->setAttribute('inputValue', $this->_inputValue); |
|
| 102 | - if ($this->_numericValue) $element->setAttribute('numericValue', $this->_numericValue); |
|
| 101 | + if ($this->_inputValue) { |
|
| 102 | + $element->setAttribute('inputValue', $this->_inputValue); |
|
| 103 | + } |
|
| 104 | + if ($this->_numericValue) { |
|
| 105 | + $element->setAttribute('numericValue', $this->_numericValue); |
|
| 106 | + } |
|
| 103 | 107 | return $element; |
| 104 | 108 | } |
| 105 | 109 | |
@@ -85,11 +85,9 @@ |
||
| 85 | 85 | case 'value': |
| 86 | 86 | if ($attribute->nodeValue == "true") { |
| 87 | 87 | $this->_value = true; |
| 88 | - } |
|
| 89 | - else if ($attribute->nodeValue == "false") { |
|
| 88 | + } else if ($attribute->nodeValue == "false") { |
|
| 90 | 89 | $this->_value = false; |
| 91 | - } |
|
| 92 | - else { |
|
| 90 | + } else { |
|
| 93 | 91 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
| 94 | 92 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
| 95 | 93 | } |
@@ -85,11 +85,9 @@ |
||
| 85 | 85 | case 'value': |
| 86 | 86 | if ($attribute->nodeValue == "true") { |
| 87 | 87 | $this->_value = true; |
| 88 | - } |
|
| 89 | - else if ($attribute->nodeValue == "false") { |
|
| 88 | + } else if ($attribute->nodeValue == "false") { |
|
| 90 | 89 | $this->_value = false; |
| 91 | - } |
|
| 92 | - else { |
|
| 90 | + } else { |
|
| 93 | 91 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
| 94 | 92 | } |
| 95 | 93 | break; |
@@ -84,11 +84,9 @@ |
||
| 84 | 84 | case 'value': |
| 85 | 85 | if ($attribute->nodeValue == "true") { |
| 86 | 86 | $this->_value = true; |
| 87 | - } |
|
| 88 | - else if ($attribute->nodeValue == "false") { |
|
| 87 | + } else if ($attribute->nodeValue == "false") { |
|
| 89 | 88 | $this->_value = false; |
| 90 | - } |
|
| 91 | - else { |
|
| 89 | + } else { |
|
| 92 | 90 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
| 93 | 91 | } |
| 94 | 92 | break; |
@@ -85,11 +85,9 @@ |
||
| 85 | 85 | case 'value': |
| 86 | 86 | if ($attribute->nodeValue == "true") { |
| 87 | 87 | $this->_value = true; |
| 88 | - } |
|
| 89 | - else if ($attribute->nodeValue == "false") { |
|
| 88 | + } else if ($attribute->nodeValue == "false") { |
|
| 90 | 89 | $this->_value = false; |
| 91 | - } |
|
| 92 | - else { |
|
| 90 | + } else { |
|
| 93 | 91 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
| 94 | 92 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
| 95 | 93 | } |
@@ -106,11 +106,9 @@ |
||
| 106 | 106 | case 'specialized': |
| 107 | 107 | if ($attribute->nodeValue == "true") { |
| 108 | 108 | $this->_specialized = true; |
| 109 | - } |
|
| 110 | - else if ($attribute->nodeValue == "false") { |
|
| 109 | + } else if ($attribute->nodeValue == "false") { |
|
| 111 | 110 | $this->_specialized = false; |
| 112 | - } |
|
| 113 | - else { |
|
| 111 | + } else { |
|
| 114 | 112 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
| 115 | 113 | } |
| 116 | 114 | break; |
@@ -180,8 +180,7 @@ |
||
| 180 | 180 | { |
| 181 | 181 | if ($this->_valueString != null) { |
| 182 | 182 | return $this->_valueString; |
| 183 | - } |
|
| 184 | - else { |
|
| 183 | + } else { |
|
| 185 | 184 | return parent::__toString(); |
| 186 | 185 | } |
| 187 | 186 | } |
@@ -103,14 +103,15 @@ |
||
| 103 | 103 | public function __toString() |
| 104 | 104 | { |
| 105 | 105 | $s = ''; |
| 106 | - if ($this->_absoluteTime) |
|
| 107 | - $s = " at " . $this->_absoluteTime; |
|
| 108 | - else if ($this->_days) |
|
| 109 | - $s = " in " . $this->_days . " days"; |
|
| 110 | - else if ($this->_hours) |
|
| 111 | - $s = " in " . $this->_hours . " hours"; |
|
| 112 | - else if ($this->_minutes) |
|
| 113 | - $s = " in " . $this->_minutes . " minutes"; |
|
| 106 | + if ($this->_absoluteTime) { |
|
| 107 | + $s = " at " . $this->_absoluteTime; |
|
| 108 | + } else if ($this->_days) { |
|
| 109 | + $s = " in " . $this->_days . " days"; |
|
| 110 | + } else if ($this->_hours) { |
|
| 111 | + $s = " in " . $this->_hours . " hours"; |
|
| 112 | + } else if ($this->_minutes) { |
|
| 113 | + $s = " in " . $this->_minutes . " minutes"; |
|
| 114 | + } |
|
| 114 | 115 | return $this->_method . $s; |
| 115 | 116 | } |
| 116 | 117 | |