public function insert($module, $name, $value)
    {
        $query = sprintf('INSERT INTO `%s` (`module`, `name`, `value`) VALUES (:module, :name, :value)', $this->table);

        if ($this->serializer->isSerializeable($value)) {
            $value = $this->serializer->serialize($value);
        }

        $stmt = $this->pdo->prepare($query);
        return $stmt->execute(array(
            ':'.ConstProviderInterface::CONFIG_PARAM_MODULE => $module,
            ':'.ConstProviderInterface::CONFIG_PARAM_NAME => $name,
            ':'.ConstProviderInterface::CONFIG_PARAM_VALUE => $value
        ));
    }
public function insert($module, $name, $value)
    {
        $query = sprintf('INSERT INTO `%s` (`module`, `name`, `value`) VALUES (:module, :name, :value)', $this->table);

        if ($this->serializer->isSerializeable($value)) {
            $value = $this->serializer->serialize($value);
        }

        $stmt = $this->pdo->prepare($query);
        return $stmt->execute(array(
            ':'.ConstProviderInterface::CONFIG_PARAM_MODULE => $module,
            ':'.ConstProviderInterface::CONFIG_PARAM_NAME => $name,
            ':'.ConstProviderInterface::CONFIG_PARAM_VALUE => $value
        ));
    }
public function insert ( $ module , $ name , $ value ) { $ query = sprintf ( 'INSERT INTO `%s` (`module`, `name`, `value`) VALUES (:module, :name, :value)' , $ this -> table ) ; if ( $ this -> serializer -> isSerializeable ( $ value ) ) { $ value = $ this -> serializer -> serialize ( $ value ) ; } $ stmt = $ this -> pdo -> prepare ( $ query ) ; return $ stmt -> execute ( array ( ':' . ConstProviderInterface :: CONFIG_PARAM_MODULE => $ module , ':' . ConstProviderInterface :: CONFIG_PARAM_NAME => $ name , ':' . ConstProviderInterface :: CONFIG_PARAM_VALUE => $ value ) ) ; }
Inserts a new record

@param string $module
@param string $name
@param mixed $value
@return boolean
Inserts a new record