# css-javascript-toolbox/11.3/models/forms.php

CSS &amp; JavaScript Toolbox, version 11.3. 34 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/11.3/code/models/forms.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/11.3/raw/models/forms.php
- Modified: 2021-03-28T13:25:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/11.3/code/models/forms.php#L10-L20`.

```php
<?php
/**
* 
*/

/**
* 
*/
class CJT_Models_Forms {
	  
	/**
	* put your comment there...
	* 
	* @param mixed $blockId
	*/
	public function delete($blockIds) {
		// Initialize.
		$tblForm = CJTxTable::getInstance('form')
																			->setTableKey(array('blockId'));
		// Delete all forms.
		foreach ($blockIds as $blockId) {
			// Delete the form!
			$tblForm->setData(array('blockId' => $blockId))
											->delete();
		}
		// Delete form groups.
		$mdlGroups = new CJT_Models_Formgroups();
		$mdlGroups->delete($blockIds);
		// Chaining.
		return $this;
	}
	
} // End class.

```
