Esempio n. 1
0
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

ci_require('HTML_Emoji', 'HTML', 'Emoji');
class Gen_emoji {

	var $CI;
	var $config_name;
	var $emoji;

	function __construct()
	{
		$this->CI =& get_instance();
		$this->config_name = 'gen_emoji';
		$this->CI->config->load($this->config_name, TRUE, TRUE);
		$this->emoji = HTML_Emoji::getInstance();
	}

	/**
	 * 入力値を変換する
	 */
	function input($msg)
	{
		$text = $this->emoji->filter($msg, array('DecToUtf8', 'HexToUtf8'));
		return $text;
	}

	/**
	 * 出力用に変換する
	 */
	function output($msg)
	{
Esempio n. 2
0
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

ci_require('Gen_file', 'Gen');
class Gen_csv extends Gen_file {

	var $delimiter;
	var $raw_line;

	function __construct($params=array())
	{
		parent::__construct($params);
		$this->delimiter = $this->is_set($params, 'delimiter', ',');
	}

	function open_file($file_name, $delimiter=',', $open_type='r')
	{
		parent::open_file($file_name, $open_type);
		$this->delimiter = $delimiter;
	}

	function raw()
	{
		return $this->raw_line;
	}

	function next()
	{
		parent::next();
		if ($this->current_line == false) return false;
		$this->raw_line = $this->current_line;
		$this->current_line = explode($this->delimiter, $this->current_line);
Esempio n. 3
0
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * メール送受信用クラス
 *
 * メール送受信関連の処理を行う
 *  *
 * @package 
 * @access  public
 * @author Masaru Hashizume <*****@*****.**>
 * @create  2010/06/20
 * @version 1.00
 **/
ci_require('Qdmail', 'Qdmail');
class Gen_mail {

	// --------------------------------------------------------------------

	var $to       = array(); //To
	var $to_name  = array(); //To名前
	var $cc       = array(); //Cc
	var $cc_name  = array(); //Cc名前
	var $bcc      = array(); //Bcc
	var $bcc_name = array(); //Bcc名前
	var $from;         //From
	var $from_name;    //From名前
	var $replyto;      //Reply-To
	var $replyto_name; // Reply-To名前
	var $subject;      //件名
	var $message;      //本文

	// --------------------------------------------------------------------