コード例 #1
0
ファイル: Bean.php プロジェクト: inetprocess/libsugarcrm
 /**
  * Set the LogPrefix to be unique and ask for an Entry Point to SugarCRM
  *
  * @param EntryPoint $entryPoint Enters the SugarCRM Folder
  * @param DB         $db         Get the SugarCRM DB and make queries
  */
 public function __construct(EntryPoint $entryPoint)
 {
     $this->logPrefix = __CLASS__ . ': ';
     $this->log = $entryPoint->getLogger();
     $this->currentUser = $entryPoint->getCurrentUser();
     $this->beanList = $entryPoint->getBeansList();
     $this->db = new DB($entryPoint);
 }