add() public method

Add an item in the database with all it's items.
public add ( array $input, $options = [], $history = true ) : integer
$input array array the _POST vars returned by the item form when press add
$history boolean do history log ? (true by default)
return integer the new ID of the added item (or false if fail)
 /**
  * Add a new item with the instance values
  *
  *@param $p_force=FALSE Force add even if no updates where done
  *@return nothing
  **/
 function addCommon($p_force = FALSE)
 {
     if (count($this->ptcdUpdates) or $p_force) {
         $itemID = parent::add($this->ptcdUpdates);
         $this->load($itemID);
     }
 }