public function mass_alert($email_table = '', $email_column = '', $emeil_where = '', $subject = '', $message = '', $link = false,
        $field = false, $value = false, $mode = 'all')
    {
        $table = $this->_get_table('mass_alert');
        $field = $this->table . '.' . $field;
        if ($mode == 'all' or $mode == 'create')
            $this->mass_alert_create[] = array(
                'email_table' => $email_table,
                'email_column' => $email_column,
                'where' => $emeil_where,
                'subject' => $subject,
                'message' => $message,
                'link' => $link,
                'field' => $field,
                'value' => $value,
                'table' => $table);
        if ($mode == 'all' or $mode == 'edit')
            $this->mass_alert_edit[] = array(
                'email_table' => $email_table,
                'email_column' => $email_column,
                'where' => $emeil_where,
                'subject' => $subject,
                'message' => $message,
                'link' => $link,
                'field' => $field,
                'value' => $value,
                'table' => $table);

        return $this;
    }
public function mass_alert($email_table = '', $email_column = '', $emeil_where = '', $subject = '', $message = '', $link = false,
        $field = false, $value = false, $mode = 'all')
    {
        $table = $this->_get_table('mass_alert');
        $field = $this->table . '.' . $field;
        if ($mode == 'all' or $mode == 'create')
            $this->mass_alert_create[] = array(
                'email_table' => $email_table,
                'email_column' => $email_column,
                'where' => $emeil_where,
                'subject' => $subject,
                'message' => $message,
                'link' => $link,
                'field' => $field,
                'value' => $value,
                'table' => $table);
        if ($mode == 'all' or $mode == 'edit')
            $this->mass_alert_edit[] = array(
                'email_table' => $email_table,
                'email_column' => $email_column,
                'where' => $emeil_where,
                'subject' => $subject,
                'message' => $message,
                'link' => $link,
                'field' => $field,
                'value' => $value,
                'table' => $table);

        return $this;
    }
public function mass_alert ( $ email_table = '' , $ email_column = '' , $ emeil_where = '' , $ subject = '' , $ message = '' , $ link = false , $ field = false , $ value = false , $ mode = 'all' ) { $ table = $ this -> _get_table ( 'mass_alert' ) ; $ field = $ this -> table . '.' . $ field ; if ( $ mode == 'all' or $ mode == 'create' ) $ this -> mass_alert_create [ ] = array ( 'email_table' => $ email_table , 'email_column' => $ email_column , 'where' => $ emeil_where , 'subject' => $ subject , 'message' => $ message , 'link' => $ link , 'field' => $ field , 'value' => $ value , 'table' => $ table ) ; if ( $ mode == 'all' or $ mode == 'edit' ) $ this -> mass_alert_edit [ ] = array ( 'email_table' => $ email_table , 'email_column' => $ email_column , 'where' => $ emeil_where , 'subject' => $ subject , 'message' => $ message , 'link' => $ link , 'field' => $ field , 'value' => $ value , 'table' => $ table ) ; return $ this ; }
NEEDS TO BE REWRITTEN
NEEDS TO BE REWRITTEN