示例#1
0
 /**
  * Adds platform predefined package pointers
  * 
  * @param BOL_Plugin $pluginDto
  */
 public function addPackagePointers(BOL_Plugin $pluginDto)
 {
     $plugin = new OW_Plugin($pluginDto);
     $upperedKey = mb_strtoupper($plugin->getKey());
     $autoloader = OW::getAutoloader();
     $predefinedPointers = array("CMP" => $plugin->getCmpDir(), "CTRL" => $plugin->getCtrlDir(), "BOL" => $plugin->getBolDir(), "CLASS" => $plugin->getClassesDir(), "MCMP" => $plugin->getMobileCmpDir(), "MCTRL" => $plugin->getMobileCtrlDir(), "MBOL" => $plugin->getMobileBolDir(), "MCLASS" => $plugin->getMobileClassesDir(), "ACTRL" => $plugin->getApiCtrlDir(), "ABOL" => $plugin->getApiBolDir(), "ACLASS" => $plugin->getApiClassesDir());
     foreach ($predefinedPointers as $pointer => $dirPath) {
         $autoloader->addPackagePointer($upperedKey . "_" . $pointer, $dirPath);
     }
 }