private $log = $_COOKIE['id']; private $pass = $_COOKIE['pass']; public function is_user($login=$this->log,$pass=$this->pass)
<?php $obj = new SomeClass; $obj -> db = $db;
<?php class SomeClass { var $db; function test() { // $this -> db } }