_id stringlengths 2 7 | title stringlengths 3 151 | partition stringclasses 3
values | text stringlengths 33 8k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q3600 | CNabuProviderFactory.getManager | train | public function getManager(string $vendor_key, string $module_key)
{
if (nb_isValidKey($vendor_key) && nb_isValidKey($module_key)) {
return $this->nb_manager_list->getItem("$vendor_key:$module_key");
| php | {
"resource": ""
} |
q3601 | CNabuProviderFactory.addInterface | train | public function addInterface(CNabuProviderInterfaceDescriptor $nb_descriptor)
{
$interface_type = $nb_descriptor->getType();
if (!array_key_exists($interface_type, $this->nb_interface_list)) {
throw new ENabuProviderException(
ENabuProviderException::ERROR_INTERFACE_TYPE... | php | {
"resource": ""
} |
q3602 | CNabuProviderFactory.getInterfaceDescriptors | train | public function getInterfaceDescriptors(int $interface_type)
{
if (!array_key_exists($interface_type, $this->nb_interface_list)) {
throw new ENabuProviderException(
| php | {
"resource": ""
} |
q3603 | CNabuProviderFactory.getInterfaceDescriptor | train | public function getInterfaceDescriptor(string $vendor, string $module, int $interface_type, string $interface)
{
if (!array_key_exists($interface_type, $this->nb_interface_list)) {
throw new ENabuProviderException(
ENabuProviderException::ERROR_INTERFACE_TYPE_NOT_EXISTS,
... | php | {
"resource": ""
} |
q3604 | CNabuProviderFactory.registerApplication | train | public function registerApplication(INabuApplication $nb_application)
{
$this->nb_manager_list->iterate(
function($key, $manager) use ($nb_application)
{
| php | {
"resource": ""
} |
q3605 | ComparisonService.getComparison | train | public function getComparison($appId, $scanId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->comparisons()
| php | {
"resource": ""
} |
q3606 | SinkHydrator.hydrateCollection | train | public static function hydrateCollection(array $sinks)
{
$hydrated = [];
foreach ($sinks as $sink) {
| php | {
"resource": ""
} |
q3607 | ValidatorService.getAll | train | public function getAll($appId, $profileId, array $queryParams)
{
$response = $this->api->applications()->profiles()->validators()->getAll($appId, | php | {
"resource": ""
} |
q3608 | ValidatorService.getById | train | public function getById($appId, $profileId, $validatorId, array $queryParams = [])
{
$response = $this->api->applications()->profiles()->validators()->getById($appId, | php | {
"resource": ""
} |
q3609 | ValidatorService.create | train | public function create($appId, $profileId, ValidatorBuilder $input, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3610 | CNabuSiteTargetMediotecaBase.setSiteTargetId | train | public function setSiteTargetId(int $nb_site_target_id) : CNabuDataObject
{
if ($nb_site_target_id === null) {
throw new ENabuCoreException(
ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
| php | {
"resource": ""
} |
q3611 | CNabuHTTPApplication.init | train | protected function init()
{
$this->prepareHTTPManagers();
$this->prepareHTTPRendersManager(); | php | {
"resource": ""
} |
q3612 | CNabuHTTPApplication.run | train | final public function run()
{
$this->nb_http_server = $this->nb_engine->getHTTPServer();
if (!($this->nb_http_server instanceof INabuHTTPServerInterface)) {
throw new ENabuCoreException(ENabuCoreException::ERROR_HTTP_SERVER_NOT_FOUND);
}
$this->prepareSecurityManager();
... | php | {
"resource": ""
} |
q3613 | ProfileService.getAll | train | public function getAll($appId = null, array $queryParams = [])
{
$response = $this->api->applications()->profiles()->getAll($appId, | php | {
"resource": ""
} |
q3614 | ProfileService.getById | train | public function getById($appId, $profileId, array $queryParams = [])
{
$response = $this->api->applications()->profiles()->getById($appId, | php | {
"resource": ""
} |
q3615 | ProfileService.create | train | public function create($appId, ProfileBuilder $input, array $queryParams = [])
{
$response = $this->api->applications()->profiles()->create($appId, | php | {
"resource": ""
} |
q3616 | ProfileService.update | train | public function update($appId, $profileId, ProfileBuilder $input, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3617 | TNabuMessagingChild.getMessaging | train | public function getMessaging(CNabuCustomer $nb_customer = null, string $field = NABU_MESSAGING_FIELD_ID, bool $force = false)
{
if ($nb_customer !== null && ($this->nb_messaging === null || $force)) | php | {
"resource": ""
} |
q3618 | UserService.getAll | train | public function getAll(array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3619 | UserService.getById | train | public function getById($userId, array $queryParams = [])
{
$response = $this->api->users()->getById($userId, | php | {
"resource": ""
} |
q3620 | UserService.deleteAll | train | public function deleteAll(array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3621 | UserService.deleteById | train | public function deleteById($userId, array $queryParams = [])
{
$response = $this->api->users()->deleteById($userId, | php | {
"resource": ""
} |
q3622 | UserService.reset | train | public function reset($input, array $queryParams = [])
{
$response = $this->api->users()->reset($input->toArray(), | php | {
"resource": ""
} |
q3623 | UserService.activate | train | public function activate($userId, $token, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3624 | ReviewService.getAll | train | public function getAll($appId, $scanId, $issueId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->issues()
| php | {
"resource": ""
} |
q3625 | ReviewService.getById | train | public function getById($appId, $scanId, $issueId, $reviewId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->issues()
| php | {
"resource": ""
} |
q3626 | ReviewService.create | train | public function create($appId, $scanId, $issueId, ReviewBuilder $input, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->issues()
| php | {
"resource": ""
} |
q3627 | PhpHydrator.hydrateCollection | train | public static function hydrateCollection(array $phps)
{
$hydrated = [];
foreach ($phps as $php) {
| php | {
"resource": ""
} |
q3628 | PhpHydrator.hydrate | train | public static function hydrate(stdClass $php)
{
$hydrated = new PhpEntity();
if (isset($php->id)) {
$hydrated->setId($php->id);
}
if (isset($php->major_version)) {
$hydrated->setMajorVersion($php->major_version);
}
if (isset($php->minor_vers... | php | {
"resource": ""
} |
q3629 | Application.configure | train | public function configure($name)
{
if (isset($this->loadedConfigurations[$name])) {
return;
}
$this->loadedConfigurations[$name] = true; | php | {
"resource": ""
} |
q3630 | Application.getProviders | train | public function getProviders($provider)
{
$name = \is_string($provider) ? $provider : \get_class($provider);
| php | {
"resource": ""
} |
q3631 | Application.resourcePath | train | public function resourcePath($path = '')
{
if ($this->resourcePath) {
return $this->resourcePath.($path ? '/'.$path : $path);
}
| php | {
"resource": ""
} |
q3632 | SourceHydrator.hydrateCollection | train | public static function hydrateCollection(array $sources)
{
$hydrated = [];
foreach ($sources as $source) {
| php | {
"resource": ""
} |
q3633 | CNabuIContactProspectStatusType.getTypesForIContact | train | public static function getTypesForIContact($nb_icontact)
{
if (is_numeric($nb_icontact_id = nb_getMixedValue($nb_icontact, 'nb_icontact_id'))) {
$retval = CNabuIContactProspectStatusType::buildObjectListFromSQL(
'nb_icontact_prospect_status_type_id',
'SELECT ipst.... | php | {
"resource": ""
} |
q3634 | CNabuSiteRole.getSiteRolesForSite | train | public static function getSiteRolesForSite($nb_site) : CNabuSiteRoleList
{
if (is_numeric($nb_site_id = nb_getMixedValue($nb_site, NABU_SITE_FIELD_ID))) {
$retval = CNabuSiteRole::buildObjectListFromSQL(
'nb_role_id',
'select * '
. 'from nb_site_ro... | php | {
"resource": ""
} |
q3635 | CNabuMediotecaItemBase.getAllMediotecaItems | train | public static function getAllMediotecaItems(CNabuMedioteca $nb_medioteca)
{
$nb_medioteca_id = nb_getMixedValue($nb_medioteca, 'nb_medioteca_id');
if (is_numeric($nb_medioteca_id)) {
$retval = forward_static_call(
array(get_called_class(), 'buildObjectListFromSQL'),
... | php | {
"resource": ""
} |
q3636 | CNabuSiteTargetCTA.getSiteTargetCTAs | train | static public function getSiteTargetCTAs($nb_site_target)
{
$nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');
if (is_numeric($nb_site_target_id)) {
$retval = CNabuSiteTargetCTA::buildObjectListFromSQL(
'nb_site_target_cta_id',
's... | php | {
"resource": ""
} |
q3637 | CNabuSiteTargetCTA.getCTATarget | train | public function getCTATarget()
{
if (!($this->nb_site_target_destination instanceof CNabuSiteTarget) &&
$this->getTargetUseURI() === CNabuSiteTargetLink::USE_URI_TRANSLATED &&
is_numeric($this->getTargetId())
) {
| php | {
"resource": ""
} |
q3638 | CNabuSiteTargetCTA.setCTATarget | train | public function setCTATarget(CNabuSiteTarget $nb_site_target = null)
{
if ($nb_site_target instanceof CNabuSiteTarget) {
$this->setTargetUseURI(CNabuSiteTargetLink::USE_URI_TRANSLATED);
| php | {
"resource": ""
} |
q3639 | CNabuSiteTargetCTA.addRole | train | public function addRole(CNabuSiteTargetCTARole $nb_role)
{
if ($nb_role->isValueNumeric(NABU_ROLE_FIELD_ID) || $nb_role->isValueGUID(NABU_ROLE_FIELD_ID)) {
$nb_role->setSiteTargetCTA($this);
| php | {
"resource": ""
} |
q3640 | CNabuSiteTargetCTA.getCTAOfSite | train | public static function getCTAOfSite($nb_site, $nb_site_target_cta)
{
$retval = null;
if (is_numeric($nb_site_id = nb_getMixedValue($nb_site, NABU_SITE_FIELD_ID)) &&
is_numeric($nb_site_target_cta_id = nb_getMixedValue($nb_site_target_cta, NABU_SITE_TARGET_CTA_FIELD_ID))
) {
... | php | {
"resource": ""
} |
q3641 | SettingHydrator.hydrate | train | public static function hydrate(stdClass $setting)
{
$hydrated = new SettingEntity();
if (isset($setting->id)) {
$hydrated->setId($setting->id);
}
if (isset($setting->issue_types)) {
$hydrated->setIssueTypes($setting->issue_types);
}
if (isse... | php | {
"resource": ""
} |
q3642 | EntrypointService.getAll | train | public function getAll($appId, $scanId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->entrypoints()
| php | {
"resource": ""
} |
q3643 | EntrypointService.getById | train | public function getById($appId, $scanId, $entrypointId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->entrypoints()
| php | {
"resource": ""
} |
q3644 | TaintHydrator.hydrateCollection | train | public static function hydrateCollection(array $taints)
{
$hydrated = [];
foreach ($taints as $taint) {
| php | {
"resource": ""
} |
q3645 | TaintHydrator.hydrate | train | public static function hydrate(stdClass $taint)
{
$hydrated = new TaintEntity();
if (isset($taint->id)) {
$hydrated->setId($taint->id);
}
if (isset($taint->start_line)) {
$hydrated->setStartLine($taint->start_line);
| php | {
"resource": ""
} |
q3646 | CNabuCatalogLanguageBase.setCatalogId | train | public function setCatalogId(int $nb_catalog_id) : CNabuDataObject
{
if ($nb_catalog_id === null) {
throw new ENabuCoreException(
ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
| php | {
"resource": ""
} |
q3647 | ConcatHydrator.hydrateCollection | train | public static function hydrateCollection(array $concats)
{
$hydrated = [];
foreach ($concats as $concat) {
| php | {
"resource": ""
} |
q3648 | ConcatHydrator.hydrate | train | public static function hydrate(stdClass $concat)
{
$hydrated = new ConcatEntity();
if (isset($concat->id)) {
$hydrated->setId($concat->id);
}
if (isset($concat->line)) {
$hydrated->setLine($concat->line);
}
if (isset($concat->start_line)) {
... | php | {
"resource": ""
} |
q3649 | ClientService.getAll | train | public function getAll(array $queryParams = [])
{
$response = | php | {
"resource": ""
} |
q3650 | ClientService.getById | train | public function getById($clientId, array $queryParams = [])
{
$response = $this->api->oauth2()->clients()->getById($clientId, | php | {
"resource": ""
} |
q3651 | ClientService.create | train | public function create(ClientBuilder $input, array $queryParams = [])
{
$response = $this->api->oauth2()->clients()->create($input->toArray(), | php | {
"resource": ""
} |
q3652 | ClientService.delete | train | public function delete($clientId, array $queryParams)
{
$response = | php | {
"resource": ""
} |
q3653 | Account.equals | train | public function equals(Account $account): bool
{
if ($this->name !== $account->name) {
return false;
} | php | {
"resource": ""
} |
q3654 | EditViewCompiler.addFields | train | private function addFields($modelData)
{
$fields = '';
$firstIteration = true;
foreach ($modelData->fields as $field)
{
if ($firstIteration)
{
$fields .= self::getInputFor($field) . PHP_EOL;
$firstIteration = false;
... | php | {
"resource": ""
} |
q3655 | EditViewCompiler.replacePrimaryKey | train | private function replacePrimaryKey($modelData)
{
$primaryKey = 'id';
foreach ($modelData->fields as $field)
{
if ($field->index == 'primary')
| php | {
"resource": ""
} |
q3656 | CNabuHTTPModuleManagerAdapter.registerHTTPServerInterface | train | protected function registerHTTPServerInterface(INabuHTTPServerInterface $interface) : bool
{
$hash = $interface->getHash();
if (is_array($this->http_server_interface_list) && array_key_exists($hash, $this->http_server_interface_list)) {
throw new ENabuHTTPException(
| php | {
"resource": ""
} |
q3657 | ClassFinder.getClassesFromNamespace | train | public function getClassesFromNamespace($namespace = null)
{
$namespace = $namespace ?: $this->getAppNamespace();
| php | {
"resource": ""
} |
q3658 | ClassFinder.convertNamespaceToPath | train | protected function convertNamespaceToPath($namespace)
{
// strip app namespace
$appNamespace = $this->getAppNamespace();
if (substr($namespace, 0, strlen($appNamespace)) != $appNamespace) {
return null;
}
$subNamespace = substr($namespace, | php | {
"resource": ""
} |
q3659 | Generator.clean | train | public function clean()
{
if ($this->files->exists($this->path)) {
| php | {
"resource": ""
} |
q3660 | Generator.getPrimaryKeyColumn | train | protected function getPrimaryKeyColumn($entityMetadata)
{
$primaryKey = 'id';
$incrementing = true;
foreach ($entityMetadata['table']['columns'] as $column) {
| php | {
"resource": ""
} |
q3661 | Generator.replaceTraits | train | protected function replaceTraits($entityMetadata, &$stub)
{
$traits = [];
// versionable
if (! empty($entityMetadata['versionTable'])) {
$traits['versionable'] = 'use \ProAI\Versioning\Versionable;';
}
// softDeletes
if ($entityMetadata['softDeletes']) {... | php | {
"resource": ""
} |
q3662 | Generator.replaceVersionable | train | protected function replaceVersionable($versionTable, &$stub)
{
$option = (! empty($versionTable)) ? true : | php | {
"resource": ""
} |
q3663 | Generator.replaceAutoUuids | train | protected function replaceAutoUuids($entityMetadata, &$stub)
{
$autoUuids = [];
foreach ($entityMetadata['table']['columns'] as $column) {
if (! empty($column['options']['autoUuid'])) {
$autoUuids[] = $column['name']; | php | {
"resource": ""
} |
q3664 | Generator.replaceVersioned | train | protected function replaceVersioned($versionTable, &$stub)
{
if (! $versionTable) {
$stub = str_replace('{{versioned}}', $this->getArrayAsText([]), $stub);
return;
}
$versioned = [];
foreach ($versionTable['columns'] as $column) {
if | php | {
"resource": ""
} |
q3665 | Generator.replaceMapping | train | protected function replaceMapping($entityMetadata, &$stub)
{
$attributes = [];
foreach ($entityMetadata['attributes'] as $attributeMetadata) {
$attributes[$attributeMetadata['name']] = $attributeMetadata['columnName'];
}
$embeddeds = [];
foreach ($entityMetadata[... | php | {
"resource": ""
} |
q3666 | Generator.replaceRelations | train | protected function replaceRelations($relations, &$stub)
{
$textRelations = [];
foreach ($relations as $key => $relation) {
$relationStub = $this->stubs['relation'];
// generate options array
$options = [];
if ($relation['type'] != 'morphTo') {
... | php | {
"resource": ""
} |
q3667 | Generator.getArrayAsText | train | protected function getArrayAsText($array, $intendBy=1)
{
$intention = '';
for ($i=0; $i<$intendBy; $i++) {
$intention .= ' ';
}
$text = var_export($array, true);
$text = preg_replace('/[ ]{2}/', ' ', $text);
| php | {
"resource": ""
} |
q3668 | TNabuProjectChild.getProject | train | public function getProject(CNabuCustomer $nb_customer = null, $force = false)
{
if ($nb_customer !== null && ($this->nb_project === null || $force)) {
$this->nb_project = null;
| php | {
"resource": ""
} |
q3669 | TNabuProjectChild.setProject | train | public function setProject(CNabuProject $nb_project, $field = NABU_PROJECT_FIELD_ID)
{
$this->nb_project = $nb_project;
if ($this instanceof CNabuDataObject) {
| php | {
"resource": ""
} |
q3670 | SourceService.getAll | train | public function getAll($appId, $profileId, array $queryParams)
{
$response = $this->api->applications()->profiles()->sources()->getAll($appId, | php | {
"resource": ""
} |
q3671 | SourceService.getById | train | public function getById($appId, $profileId, $sourceId, array $queryParams = [])
{
$response = $this->api->applications()->profiles()->sources()->getById($appId, $profileId, | php | {
"resource": ""
} |
q3672 | SourceService.create | train | public function create($appId, $profileId, SourceBuilder $input, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3673 | CNabuSiteModuleBase.setErrorReporting | train | public function setErrorReporting(int $error_reporting = 0) : CNabuDataObject
{
if ($error_reporting === null) {
throw new ENabuCoreException(
ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
| php | {
"resource": ""
} |
q3674 | CNabuSiteModuleBase.setDebugging | train | public function setDebugging(string $debugging = "F") : CNabuDataObject
{
if ($debugging === null) {
throw new ENabuCoreException(
ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
| php | {
"resource": ""
} |
q3675 | AbstractCompiler.replaceClassName | train | protected function replaceClassName($modelName)
{
$this->stub = str_replace('{{class_name}}', $modelName, $this->stub);
| php | {
"resource": ""
} |
q3676 | AbstractCompiler.replaceNamespace | train | protected function replaceNamespace(stdClass $scaffolderConfig)
{
$this->stub = str_replace('{{namespace}}', | php | {
"resource": ""
} |
q3677 | CNabuRole.getRolesForSite | train | static public function getRolesForSite($nb_site) : CNabuRoleList
{
$nb_site_id = nb_getMixedValue($nb_site, NABU_SITE_FIELD_ID);
if (is_numeric($nb_site_id)) {
$retval = self::buildObjectListFromSQL(
'nb_role_id',
'select r.* '
. 'from nb_... | php | {
"resource": ""
} |
q3678 | Text.setText | train | public function setText($text)
{
if ( ! is_string($text)) {
throw new \InvalidArgumentException(
__METHOD__."() expects parameter one, text, | php | {
"resource": ""
} |
q3679 | Text.getMaxChunks | train | public function getMaxChunks()
{
return ceil(mb_strlen((string) | php | {
"resource": ""
} |
q3680 | Text.getChunk | train | protected function getChunk($offset)
{
if ( ! is_numeric($offset) || ! is_int(+$offset) || $offset < 0) {
throw new \InvalidArgumentException(
__METHOD__."() expects parameter one, offset, to be a positive "
. "integer or zero"
);
}
$chunk = false;
| php | {
"resource": ""
} |
q3681 | ModelCompiler.replaceNamespaceModelExtend | train | private function replaceNamespaceModelExtend(stdClass $scaffolderConfig)
{
$this->stub = str_replace('{{namespace_model_extend}}', | php | {
"resource": ""
} |
q3682 | CNabuMediotecaTypeLanguageBase.setMediotecaTypeId | train | public function setMediotecaTypeId(int $nb_medioteca_type_id) : CNabuDataObject
{
if ($nb_medioteca_type_id === null) {
throw new ENabuCoreException(
ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
| php | {
"resource": ""
} |
q3683 | Score.equals | train | public function equals(Score $score): bool
{
if (null !== $this->scaled xor null !== $score->scaled) {
return false;
}
if ((float) $this->scaled !== (float) $score->scaled) {
return false;
}
if (null !== $this->raw xor null !== $score->raw) {
... | php | {
"resource": ""
} |
q3684 | EmailService.renderEmailBody | train | public function renderEmailBody(string $templateName, string $templatePackage, string $format, array $variables, bool $emogrify = true): string
{
$standaloneView = new StandaloneView();
$request = $standaloneView->getRequest();
// $request->setControllerPackageKey('Sandstorm.Maklerapp... | php | {
"resource": ""
} |
q3685 | EmailService.sendMail | train | protected function sendMail(Message $mail): bool
{
$allRecipients = $mail->getTo() + $mail->getCc() + $mail->getBcc();
$totalNumberOfRecipients = count($allRecipients);
$actualNumberOfRecipients = 0;
$exceptionMessage = '';
try {
$actualNumberOfRecipients = $mail... | php | {
"resource": ""
} |
q3686 | ConcatService.getAll | train | public function getAll($appId, $scanId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->concats()
| php | {
"resource": ""
} |
q3687 | ConcatService.getById | train | public function getById($appId, $scanId, $concatId, array $queryParams = [])
{
$response = $this->api
->applications()
->scans()
->concats()
| php | {
"resource": ""
} |
q3688 | ValidatorHydrator.hydrateCollection | train | public static function hydrateCollection(array $validators)
{
$hydrated = [];
foreach ($validators as $validator) {
| php | {
"resource": ""
} |
q3689 | ValidatorHydrator.hydrate | train | public static function hydrate(stdClass $validator)
{
$hydrated = new ValidatorEntity();
if (isset($validator->id)) {
$hydrated->setId($validator->id);
}
if (isset($validator->class)) {
$hydrated->setClass($validator->class);
}
if (isset($va... | php | {
"resource": ""
} |
q3690 | CNabuMediotecaTypeBase.findByKey | train | public static function findByKey($nb_customer, $key)
{
$nb_customer_id = nb_getMixedValue($nb_customer, 'nb_customer_id');
if (is_numeric($nb_customer_id)) {
$retval = CNabuMediotecaType::buildObjectFromSQL(
'select * '
. 'from nb_medioteca_type '
... | php | {
"resource": ""
} |
q3691 | CNabuMediotecaTypeBase.getAllMediotecaTypes | train | public static function getAllMediotecaTypes(CNabuCustomer $nb_customer)
{
$nb_customer_id = nb_getMixedValue($nb_customer, 'nb_customer_id');
if (is_numeric($nb_customer_id)) {
$retval = forward_static_call(
array(get_called_class(), 'buildObjectListFromSQL'),
... | php | {
"resource": ""
} |
q3692 | CNabuMediotecaTypeBase.getFilteredMediotecaTypeList | train | public static function getFilteredMediotecaTypeList($nb_customer, $q = null, $fields = null, $order = null, $offset = 0, $num_items = 0)
{
$nb_customer_id = nb_getMixedValue($nb_customer, NABU_CUSTOMER_FIELD_ID);
if (is_numeric($nb_customer_id)) {
$fields_part = nb_prefixFieldList(CNabuM... | php | {
"resource": ""
} |
q3693 | SourceService.getAll | train | public function getAll(array $queryParams = [])
{
$response = $this->api->sources()->getAll($queryParams);
| php | {
"resource": ""
} |
q3694 | AclService.getById | train | public function getById($appId, $aclId, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3695 | AclService.create | train | public function create($appId, AclBuilder $input, array $queryParams = [])
{
$response = $this->api->applications()->acls()->create($appId, | php | {
"resource": ""
} |
q3696 | AclService.update | train | public function update($appId, $aclId, AclBuilder $input, array $queryParams = [])
{
$response | php | {
"resource": ""
} |
q3697 | StatementsFilter.byVerb | train | public function byVerb(Verb $verb): self
{
$this->filter['verb'] = | php | {
"resource": ""
} |
q3698 | StatementsFilter.byActivity | train | public function byActivity(Activity $activity): self
{
| php | {
"resource": ""
} |
q3699 | StatementsFilter.limit | train | public function limit(int $limit): self
{
if ($limit < 0) {
throw new \InvalidArgumentException('Limit must be a non-negative integer');
| php | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.