Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V13 #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

V13 #4

wants to merge 10 commits into from

Conversation

b13-michaelsemle
Copy link

No description provided.

@@ -75,13 +66,6 @@ public function processDatamap_preProcessFieldArray(&$incomingFieldArray, $table
}
}

/**
* See what tags are already in the database and add missing tags, and map the tag names to the IDs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

@@ -10,12 +12,18 @@
* of the License, or any later version.
*/

/**
* Helper functionality to quickly work with tags without having to configure TCA, this also allows for "tag"
* to change implementation without having users to modify their code.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

@@ -53,12 +65,6 @@ public function buildFieldConfiguration(string $table, string $fieldName, array
return $fieldConfiguration;
}

/**
* Shorthand function to identify all fields that have tags based on the foreign_table field.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)


/**
* Abstraction layer to keep all tag DB queries within this PHP class.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

return $conn->lastInsertId();
}

/**
* Simple query for looking for tags that contain the search word. No multi-word / and/or search implemented yet.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

use TYPO3\CMS\Core\Utility\StringUtility;

/**
* Render a list of tags.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

}

/**
* DataHandler hook to create tags automatically if they don't exist yet. This way, a clean list of
* IDs is entered to DataHandler.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments like this aren't bad actually ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants