class App
{
protected $data = [];
public function setData(array $data)
{
$this->data = $data;
}
}
class ModulOne extends App
{
public $id;
public function setData(array $data)
{
parent::setData($data);
if (!empty($this->data['id'])) {
$this->id = $this->data['id'];
}
}
}
$a = new ModulOne();
$a->setData(['id' => 1]);
var_dump($a);
bcdiv('12.345', 1, 2); // 12.34
//
votes() {
return this.activity ? this.activity.vote.count : null
},
//
FileViewFinder->findInPaths('index', array('D:\\Projects\\eclipseweb\\resources\\views'))
if (document.referrer !== 'сайт.ру/паге1') {
window.location = "сайт.ру/паге3";
}
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;