سلام. منظور از پرنت و دادن اسم خود تابع داخل تابع چیه؟
protected function afterFind()
{
parent::afterFind();
$this->_oldTags=$this->tags;
}
Posted 26 February 2013 - 02:19 AM
protected function afterFind()
{
parent::afterFind();
$this->_oldTags=$this->tags;
}
Posted 26 February 2013 - 02:55 AM
<?php
class A {
function example() {
echo "I am A::example() and provide basic functionality.<br />\n";
}
}
class B extends A {
function example() {
echo "I am B::example() and provide additional functionality.<br />\n";
parent::example();
}
}
$b = new B;
// This will call B::example(), which will in turn call A::example().
$b->example();
?>