改名
This commit is contained in:
@@ -46,6 +46,15 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* recover class by clone
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->clean();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Collection constructor.
|
||||
*
|
||||
|
||||
@@ -98,12 +98,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws ComponentException
|
||||
* recover class by clone
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->error('__clone ' . get_called_class());
|
||||
$this->clean();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,15 @@ class CollectionIterator extends \ArrayIterator
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* recover class by clone
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->clean();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CollectionIterator constructor.
|
||||
* @param $model
|
||||
|
||||
@@ -61,6 +61,15 @@ class Pagination extends Component
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* recover class by clone
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->clean();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array|Closure $callback
|
||||
* @throws Exception
|
||||
|
||||
@@ -171,6 +171,14 @@ class Event extends BaseObject
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* recover class by clone
|
||||
*/
|
||||
public function __clone()
|
||||
{
|
||||
$this->clean();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param array $params
|
||||
|
||||
Reference in New Issue
Block a user