[ONE LINE DESCRIPTION OF PROJECT]
[A PARAGRAPH DESCRIBING WHY YOU BUILT THIS]
[ANOTHER PARAGRAPH DESCRIBING YOUR IMPETUS FOR RELEASING THIS]
public function getowner() { | |
$id = $this->request->get('id'); | |
$data = $this->Powners->get($id); | |
$this->set(compact('data')); | |
$this->set('_serialize', ['data']); | |
} |
<?php | |
public function specificAccessSpeeds() { | |
$specificAccessType_id = $this->request->data['Service']['specific_access_type_id']; | |
$Model = ClassRegistry::init('SpecificAccessTypesAccessSpeed'); | |
$Model->virtualFields['custom'] = 'AccessSpeed.name'; | |
$specificAccessSpeeds = $Model->find( 'list', array( | |
'conditions' => array( 'SpecificAccessTypesAccessSpeed.specific_access_type_id' => $specificAccessType_id ), | |
'recursive' => -1, |
trait foo { function bob() { echo 'from trait'; }} | |
class bar { use foo { bob as likeBob }; function bob() { $this->likeBob();}} | |
class baz extends bar { function bob() { parent::bob(); echo ' from child'; }} | |
$a = new baz; | |
$a->bob(); | |
//result: from trait from child |