1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

- public magic methods

This commit is contained in:
David Grudl
2008-07-22 22:37:14 +00:00
parent e48cd54a41
commit 97f2ed392f
2 changed files with 7 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ abstract class Object
* @return mixed
* @throws ::MemberAccessException
*/
protected function __call($name, $args)
public function __call($name, $args)
{
$class = get_class($this);
@@ -137,7 +137,7 @@ abstract class Object
* @return mixed
* @throws ::MemberAccessException
*/
protected static function __callStatic($name, $args)
public static function __callStatic($name, $args)
{
$class = get_called_class();
throw new /*::*/MemberAccessException("Call to undefined static method $class::$name().");
@@ -152,7 +152,7 @@ abstract class Object
* @return mixed property value
* @throws ::MemberAccessException if the property is not defined.
*/
protected function &__get($name)
public function &__get($name)
{
$class = get_class($this);
@@ -184,7 +184,7 @@ abstract class Object
* @return void
* @throws ::MemberAccessException if the property is not defined or is read-only
*/
protected function __set($name, $value)
public function __set($name, $value)
{
$class = get_class($this);
@@ -215,7 +215,7 @@ abstract class Object
* @param string property name
* @return bool
*/
protected function __isset($name)
public function __isset($name)
{
return $name !== '' && self::hasAccessor(get_class($this), 'get' . $name);
}
@@ -229,7 +229,7 @@ abstract class Object
* @return void
* @throws ::MemberAccessException
*/
protected function __unset($name)
public function __unset($name)
{
$class = get_class($this);
throw new /*::*/MemberAccessException("Cannot unset an property $class::\$$name.");

View File

@@ -444,7 +444,7 @@ class dibi
/**
* Replacement for majority of dibi::methods() in future.
*/
protected static function __callStatic($name, $args)
public static function __callStatic($name, $args)
{
//if ($name = 'select', 'update', ...') {
// return self::command()->$name($args);