getGenericDataValue( 'help_group_control_id' ); } /** * @param string $value UUID * @return bool */ function setHelpGroupControl( $value ) { $value = TTUUID::castUUID( $value ); return $this->setGenericDataValue( 'help_group_control_id', $value ); } /** * @return mixed */ function getHelp() { return $this->getGenericDataValue( 'help_id' ); } /** * @param string $value UUID * @return bool */ function setHelp( $value ) { $value = TTUUID::castUUID( $value ); return $this->setGenericDataValue( 'help_id', $value ); } /** * @return mixed */ function getOrder() { return $this->getGenericDataValue( 'order_value' ); } /** * @param $value * @return bool */ function setOrder( $value ) { $value = trim( $value ); return $this->setGenericDataValue( 'order_value', $value ); } //This table doesn't have any of these columns, so overload the functions. /** * @return bool */ function getDeleted() { return false; } /** * @param $bool * @return bool */ function setDeleted( $bool ) { return false; } /** * @return bool */ function getCreatedDate() { return false; } /** * @param int $epoch EPOCH * @return bool */ function setCreatedDate( $epoch = null ) { return false; } /** * @return bool */ function getCreatedBy() { return false; } /** * @param string $id UUID * @return bool */ function setCreatedBy( $id = null ) { return false; } /** * @return bool */ function getUpdatedDate() { return false; } /** * @param int $epoch EPOCH * @return bool */ function setUpdatedDate( $epoch = null ) { return false; } /** * @return bool */ function getUpdatedBy() { return false; } /** * @param string $id UUID * @return bool */ function setUpdatedBy( $id = null ) { return false; } /** * @return bool */ function getDeletedDate() { return false; } /** * @param int $epoch EPOCH * @return bool */ function setDeletedDate( $epoch = null ) { return false; } /** * @return bool */ function getDeletedBy() { return false; } /** * @param string $id UUID * @return bool */ function setDeletedBy( $id = null ) { return false; } /** * @return bool */ function Validate() { // // BELOW: Validation code moved from set*() functions. // // Help Group Control $hgclf = TTnew( 'HelpGroupControlListFactory' ); /** @var HelpGroupControlListFactory $hgclf */ $this->Validator->isResultSetWithRows( 'help_group_control', $hgclf->getByID( $this->getHelpGroupControl() ), TTi18n::gettext( 'Help Group Control is invalid' ) ); // Help Entry $hlf = TTnew( 'HelpListFactory' ); /** @var HelpListFactory $hlf */ $this->Validator->isResultSetWithRows( 'help', $hlf->getByID( $this->getHelp() ), TTi18n::gettext( 'Help Entry is invalid' ) ); // Order $this->Validator->isNumeric( 'order', $this->getOrder(), TTi18n::gettext( 'Order is invalid' ) ); // // ABOVE: Validation code moved from set*() functions. // return true; } } ?>