# easy-code-manager/1.1/models/forms.php

FluentSnippets – High-Performance Code Snippets, Header &amp; Footer Code, Custom CSS &amp; PHP Code Manager, version 1.1. 34 lines.

- Page: https://pluginprobe.com/plugins/easy-code-manager/1.1/code/models/forms.php
- Raw: https://pluginprobe.com/plugins/easy-code-manager/1.1/raw/models/forms.php
- Modified: 2017-08-15T21:15:34+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/easy-code-manager/1.1/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.

```
