Пример #1
0
 public static function getNetworkFromCore(Core $core)
 {
     if (get_class($core) == Network::getClassName()) {
         return $core;
     } elseif (get_class($core) == Site::getClassName()) {
         return $core->getNetwork();
     } else {
         return $core->getSite()->getNetwork();
     }
 }
Пример #2
0
 public function getSite($siteId, $siteKey)
 {
     return Site::init($this, $siteId, $siteKey);
 }