/** * Marks all page's fields with a "true" content_requested value as complete * * @param int $pageVersionId * @param array $input * @return string */ public function markContentRequestedFieldsComplete($pageId) { $page = $this->Page->findOrFail($pageId); $pageVersions = $this->PageVersionsRepository->getVersionsListForPage($page); foreach ($pageVersions as $pageVersion => $name) { $requestedFieldIds = $this->FieldsRepository->findContentRequestedFieldsList($pageVersion); if (!$this->FieldManager->markNoContentRequested($requestedFieldIds)) { return json_encode(false); } } return json_encode(true); }
/** * Resets a fields values * * @param integer $fieldId * @return json */ public function requestReset($fieldId, $scope) { $field = $this->Manager->resetField($fieldId, $scope); return $field; }
/** * Update the collection instance field * * @param [type] $fieldId [description] * @param [type] $input [description] * @return [type] [description] */ public function updateCollectionInstanceField($fieldId, $input) { return $this->FieldManager->updateField($fieldId, $input); }