Menu

#8 best way of calling get_entity

open
nobody
5
2005-11-19
2005-11-19
Anonymous
No

get_entity coud have a overload to be called with two
parameters

($entity_type, $info_data_id)

so, for instance, instead of

$cirurgia = $GLOBALS['concisus']->db_hl->get_entity(array(
'entity_type' => 'cirurgia',
'info_data_id' => $idCirurgia
));

I could call

$cirurgia =
$GLOBALS['concisus']->db_hl->get_entity('cirurgia',$idCirurgia);

ok.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.