BaseActionsクラスの派生クラスは、if/else/elseif/ifnot/elseifnot/endifの各タグを処理する際checkCondition()を用いる。この際、BaseActionsクラスがこのメソッドを呼ぶため、protectedとする必要がある。なおこのメソッドはダイレクトに用いるようなものではないため、publicは好ましくない。
Revision 1782:
Change: access modifier for checkCondition() in each class is now
protected
checkCondition is called from BaseActions. The access modifier should be
'protected'.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1782
* @param string $value value of property\r
* @return boolean condition\r
*/\r
- public function checkCondition($field, $name='', $value = '')\r
+ protected function checkCondition($field, $name='', $value = '')\r
{\r
global $catid, $blog, $member, $itemidnext, $itemidprev, $manager, $archiveprevexists, $archivenextexists;\r
\r
* @param string $value value of property\r
* @return condition\r
*/\r
- public function checkCondition($field, $name='', $value = '')\r
+ protected function checkCondition($field, $name='', $value = '')\r
{\r
global $catid, $blog, $member, $itemidnext, $itemidprev, $manager, $archiveprevexists, $archivenextexists;\r
\r
* @param string $value value of property\r
* @return boolean\r
*/\r
- private function checkCondition($field, $name='', $value = '') {\r
+ protected function checkCondition($field, $name='', $value = '') {\r
global $catid, $blog, $member, $itemidnext, $itemidprev, $manager, $archiveprevexists, $archivenextexists;\r
$condition = 0;\r
switch ( $field )\r
* @param string $value value of property\r
* @return boolean\r
*/\r
- private function checkCondition($field, $name='', $value = '')\r
+ protected function checkCondition($field, $name='', $value = '')\r
{\r
global $catid, $blog, $member, $itemidnext, $itemidprev, $manager, $archiveprevexists, $archivenextexists;\r
\r