• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/app.php
  • Класс: BitrixMobileAppAppTable
  • Вызов: AppTable::checkFields
static function checkFields(Result $result, $primary, array $data)
{
	parent::checkFields($result, $primary, $data);

	if ($result instanceof EntityAddResult)
	{
		$entity = self::getEntity();
		if (!$data["CODE"])
		{
			$result->addError(new EntityFieldError($entity->getField("CODE"), "Can not be empty!", FieldError::EMPTY_REQUIRED));
		}
		elseif (!$data["FOLDER"])
		{
			$result->addError(new EntityFieldError($entity->getField("FOLDER"), "Can not be empty!", FieldError::EMPTY_REQUIRED));
		}
		elseif (!$data["NAME"])
		{
			$result->addError(new EntityFieldError($entity->getField("NAME"), "Can not be empty!", FieldError::EMPTY_REQUIRED));
		}

	}
}