Lines Matching refs:attribute
577 throw new ExceptionBadState("The page database attribute passed should not be empty");
584 throw new ExceptionRuntime("The attribute ($key) has value that is an array (" . implode(", ", $value) . ")");
615 throw new ExceptionBadState("There was a problem during the page attribute updates. : {$e->getMessage()}");
1042 function getDatabaseRowFromAttribute(string $attribute, string $attributeValue)
1044 $query = $this->getParametrizedLookupQuery($attribute);
1073 LogUtility::error("The page ($this->markupPath) and the page ($attributeValue) have the same $attribute ($attributeValue)");
1081 LogUtility::warning("Error: More than 1 rows ($rowCount) found for attribute ($attribute) with the value ($attributeValue)");
1115 throw new ExceptionNotFound("The existing pages ($existingPages) have all the same attribute $attribute with the value ($attributeValue)", LogUtility::LVL_MSG_ERROR);
1218 function getFromRow(string $attribute)
1224 if (!array_key_exists($attribute, $this->row)) {
1226 * An attribute should be added to {@link DatabasePageRow::PAGE_BUILD_ATTRIBUTES}
1229 throw new ExceptionRuntime("The metadata ($attribute) was not found in the returned database row.", $this->getCanonical());
1232 $value = $this->row[$attribute];
1240 $upperAttribute = strtoupper($attribute);
1288 function checkCollision($wikiIdInDatabase, $attribute, $value)
1308 $errorMessage = "The page ($this->markupPath) and the page ($wikiIdInDatabase) have the same $attribute value ($value)";