/** * @param Version $version * @param Guard $auth * @param DbLogger $dbLogger * @param Logger $logger */ public function __construct(Version $version, Guard $auth, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->logger = $logger; $this->dbLogger = $dbLogger; $this->transactionRepo = $version->getActivityElement()->getTransaction()->getRepository(); }
/** * @param Version $version * @param Log $dbLogger * @param Guard $auth * @param LoggerInterface $logger */ public function __construct(Version $version, Log $dbLogger, Guard $auth, LoggerInterface $logger) { $this->auth = $auth; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->iatiLegacyRepo = $version->getActivityElement()->getLegacyData()->getRepository(); }
/** * @param Version $version * @param Log $log * @param Guard $auth */ function __construct(Version $version, Log $log, Guard $auth) { $this->repo = $version->getOrganizationElement()->getDocumentLink()->getRepository(); $this->version = $version; $this->log = $log; $this->auth = $auth; }
/** * @param Version $version * @param DbLogger $dbLogger * @param Guard $auth * @param Logger $logger */ public function __construct(Version $version, DbLogger $dbLogger, Guard $auth, Logger $logger) { $this->auth = $auth; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->iatiPolicyMarkerRepo = $version->getActivityElement()->getPolicyMarker()->getRepository(); }
/** * @param Version $version * @param Log $log * @param Guard $auth */ function __construct(Version $version, Log $log, Guard $auth) { $this->repo = $version->getOrganizationElement()->getRecipientCountryBudget()->getRepository(); $this->auth = $auth; $this->log = $log; $this->version = $version; }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param Logger $logger */ public function __construct(Version $version, Guard $auth, DatabaseManager $database, Logger $logger) { $this->stepTwoRepo = $version->getActivityElement()->getStepTwo()->getRepository(); $this->auth = $auth; $this->logger = $logger; $this->database = $database; }
/** * @param Version $version * @param Log $log * @param Guard $auth */ public function __construct(Version $version, Log $log, Guard $auth) { $this->auth = $auth; $this->log = $log; $this->version = $version; $this->iatiTitleRepo = $version->getActivityElement()->getTitle()->getRepository(); }
/** * @param Version $version * @param Log $log * @param Guard $auth */ public function __construct(Version $version, Log $log, Guard $auth) { $this->auth = $auth; $this->log = $log; $this->iatiDescriptionRepo = $version->getActivityElement()->getdescription()->getRepository(); $this->activityRepo = $version->getActivityElement()->getRepository(); }
/** * @param Version $version * @param Log $log * @param Guard $auth */ function __construct(Version $version, Log $log, Guard $auth) { $this->repo = $version->getActivityElement()->getOtherIdentifier()->getRepository(); $this->auth = $auth; $this->log = $log; $this->version = $version; }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param Logger $logger */ public function __construct(Version $version, Guard $auth, DatabaseManager $database, Logger $logger) { $this->auth = $auth; $this->logger = $logger; $this->database = $database; $this->CountryBudgetItemRepo = $version->getActivityElement()->getCountryBudgetItem()->getRepository(); }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger */ function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->repo = $version->getSettingsElement()->getUpgradeRepository(); $this->database = $database; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->auth = $auth; }
/** * @param Version $version */ function __construct(Version $version) { $this->activityElement = $version->getActivityElement(); $this->downloadCsvRepo = $this->activityElement->getDownloadCsv()->getRepository(); $this->simpleCsvDataFormatter = $this->activityElement->getDownloadCsv()->getSimpleCsvDataFormatter(); $this->completeCsvDataFormatter = $this->activityElement->getDownloadCsv()->getCompleteCsvDataFormatter(); $this->transactionCsvDataFormatter = $this->activityElement->getDownloadCsv()->getTransactionCsvDataFormatter(); }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger */ function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->database = $database; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->humanitarianScopeRepo = $version->getActivityElement()->getHumanitarianScopeRepository(); }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger * @internal param Log $log */ function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->database = $database; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->repo = $version->getOrganizationElement()->getRecipientRegionBudgetRepository(); }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param Log $dbLogger * @param LoggerInterface $logger */ public function __construct(Version $version, Guard $auth, DatabaseManager $database, Log $dbLogger, LoggerInterface $logger) { $this->auth = $auth; $this->database = $database; $this->DocumentLinkRepo = $version->getActivityElement()->getDocumentLink()->getRepository(); $this->dbLogger = $dbLogger; $this->logger = $logger; }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger */ function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->database = $database; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->totalExpenditureRepo = $version->getOrganizationElement()->getTotalExpenditureRepository(); }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger */ public function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->dbLogger = $dbLogger; $this->database = $database; $this->defaultAidTypeRepo = $version->getActivityElement()->getDefaultAidType()->getRepository(); $this->logger = $logger; }
/** * @param Version $version * @param Guard $auth * @param DatabaseManager $database * @param DbLogger $dbLogger * @param Logger $logger */ public function __construct(Version $version, Guard $auth, DatabaseManager $database, DbLogger $dbLogger, Logger $logger) { $this->auth = $auth; $this->dbLogger = $dbLogger; $this->database = $database; $this->capitalSpendRepo = $version->getActivityElement()->getCapitalSpend()->getRepository(); $this->logger = $logger; }
/** * @param OrganizationManager $organizationManager * @param ActivitiesManager $activityManager * @param UserActivity $userActivityRepo * @param Guard $auth * @param Version $version */ public function __construct(OrganizationManager $organizationManager, ActivitiesManager $activityManager, UserActivity $userActivityRepo, Guard $auth, Version $version) { $this->auth = $auth; $this->repo = $version->getActivityElement()->getRepository(); $this->version = $version; $this->userActivityRepo = $userActivityRepo; $this->organizationManager = $organizationManager; $this->activityManager = $activityManager; }
/** * @param Version $version * @param ActivityManager $activityManager * @param OrganizationManager $organizationManager * @param DatabaseManager $dbManager * @param Guard $auth * @param Log $dbLogger * @param LoggerInterface $logger */ function __construct(Version $version, ActivityManager $activityManager, OrganizationManager $organizationManager, DatabaseManager $dbManager, Guard $auth, Log $dbLogger, LoggerInterface $logger) { $this->repo = $version->getSettingsElement()->getRepository(); $this->activityManager = $activityManager; $this->organizationManager = $organizationManager; $this->dbLogger = $dbLogger; $this->logger = $logger; $this->dbManager = $dbManager; $this->auth = $auth; }
/** * @param Version $version * @param Guard $auth * @param Logger $logger * @param DatabaseManager $database */ public function __construct(Version $version, Guard $auth, Logger $logger, DatabaseManager $database) { $this->auth = $auth; $this->logger = $logger; $this->version = $version; $this->activityElement = $version->getActivityElement(); $this->activityRepo = $this->activityElement->getRepository(); $this->transactionRepo = $this->activityElement->getTransactionRepository(); $this->resultRepo = $this->activityElement->getResultRepository(); $this->database = $database; }
/** * Generate Xml file. */ public function generateXmlFile() { $xmlData = array(); $xmlData['@attributes'] = array('version' => $this->version->getVersion(), 'generated-datetime' => gmdate('c')); $xmlData['iati-activity'] = $this->buildActivityXml(); $xml = $this->arrayToXml->createXML('iati-activities', $xmlData); $filename = "activities"; header('Content-Type: text/xml'); header('Content-Disposition: attachment;filename=' . $filename . '.xml'); echo $xml->saveXML(); }
/** * @param Version $version * @param Guard $auth * @param OrganizationData $orgData * @param OrganizationPublished $orgPublished * @param Logger $logger * @param TwitterAPI $twitter */ public function __construct(Version $version, Guard $auth, OrganizationData $orgData, OrganizationPublished $orgPublished, Logger $logger, TwitterAPI $twitter) { $this->version = $version; $this->repo = $version->getOrganizationElement()->getRepository(); $this->orgElement = $version->getOrganizationElement(); $this->orgData = $orgData; $this->orgPublished = $orgPublished; $this->logger = $logger; $this->auth = $auth; $this->twitterApi = $twitter; }
/** * @param FormBuilder $formBuilder * @param Version $version */ public function __construct(FormBuilder $formBuilder, Version $version) { $this->formBuilder = $formBuilder; $this->formPath = $version->getActivityElement()->getStepThree()->getForm(); }
/** * @param FormBuilder $formBuilder * @param Version $version */ function __construct(FormBuilder $formBuilder, Version $version) { $this->formBuilder = $formBuilder; $this->formPath = $version->getActivityElement()->getCapitalSpend()->getForm(); }
/** * @param Version $version */ function __construct(Version $version) { return $version->getActivityElement()->getUploadTransactionRequest(); }
/** * @param Version $version */ function __construct(Version $version) { $this->req = $version->getActivityElement()->getActivityScopeRequest(); return $this->req; }
/** * @param Version $version * @param Log $log * @param Guard $auth */ public function __construct(Version $version, Log $log, Guard $auth) { $this->auth = $auth; $this->log = $log; $this->participatingOrgRepo = $version->getActivityElement()->getParticipatingOrganization()->getRepository(); }
/** * @param Version $version */ function __construct(Version $version) { return $version->getActivityElement()->getStepTwoRequest(); }
/** * @param Version $version */ function __construct(Version $version) { return $version->getActivityElement()->getCountryBudgetItemRequest(); }