public static function init(array $conf = NULL) { self::$modules = Kohana::modules(); if ($conf === NULL) { return; } if (isset($conf['paths'])) { self::$paths = array_merge(self::$paths, $conf['paths']); } }
static function verwerkKoppeling($koppeling, &$object, &$objectenpool) { try { if (is_array($koppeling) && $objectenpool[$koppeling['Eigenschap-3AElement_link']]) { switch (@$koppeling['Eigenschap-3AElement_link_type']) { case 'Depends': $koppelobject = new Depends(); @$koppelobject->setLinkNote($koppeling['Eigenschap-3AElement_link_note']); @$koppelobject->setLink($objectenpool[$koppeling['Eigenschap-3AElement_link']]); $object->addDepends($koppelobject); break; case 'Connects': $koppelobject = new Connects(); @$koppelobject->setLinkNote($koppeling['Eigenschap-3AElement_link_note']); @$koppelobject->setLinkCondition($koppeling['Eigenschap-3AElement_condition']); @$koppelobject->setConnectionType($koppeling['Eigenschap-3AElement_connection_type']); @$koppelobject->setLink($objectenpool[$koppeling['Eigenschap-3AElement_link']]); $object->addConnects($koppelobject); break; case 'Contributes': $koppelobject = new Contributes(); @$koppelobject->setLinkNote($koppeling['Eigenschap-3AElement_link_note']); @$koppelobject->setContributionValue($koppeling['Eigenschap-3AElement_contribution_value']); @$koppelobject->setLink($objectenpool[$koppeling['Eigenschap-3AElement_link']]); $object->addContributes($koppelobject); break; default: break; } } } catch (Exception $e) { } return $object; }
<?php defined('SYSPATH') or die('No direct script access.'); Depends::init(Kohana::config('depends')->as_array());