$form_id = false;
$import_fields = false;
$importing = false;
+ $option_name = GLM_MEMBERS_LEADS_PLUGIN_IMPORT_OPTION;
+ $page_size = 20;
+ $offset = false;
+ $next_offset = false;
// Grab data from the Sources table
$sources = $this->wpdb->get_results(
switch( $option2 ) {
case 'import':
+ $result = '';
if ( isset( $_REQUEST['form_id'] ) ) {
$form_id = filter_var( $_REQUEST['form_id'], FILTER_VALIDATE_INT );
- $result = '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
+ //$result = '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
}
if ( $form_id ) {
$form = GFAPI::get_form( $form_id );
- $result = '<pre>$form: ' . print_r( $form, true ) . '</pre>';
+ //$result = '<pre>$form: ' . print_r( $form, true ) . '</pre>';
//$result = '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
}
+ if ( $form_id ) {
+ $option_name = GLM_MEMBERS_LEADS_PLUGIN_IMPORT_OPTION . '_form_' . $form_id;
+ }
if ( $importing ) {
/*
+ * ONLY if $_REQUEST['import_fields'] is given
* If they import-fields are being posted then save as
- * wordpress option. Using update_option here incase the option
+ * WordPress option. Using update_option here in case the option
* already exists.
*/
- update_option( GLM_MEMBERS_LEADS_PLUGIN_IMPORT_OPTION, serialize( $_REQUEST['import_fields'] ) );
+ if ( $_REQUEST['import_fields'] ) {
+ update_option(
+ $option_name,
+ serialize( $_REQUEST['import_fields'] )
+ );
+ }
// try to get import fields options
- $import_fields = unserialize( get_option( GLM_MEMBERS_LEADS_PLUGIN_IMPORT_OPTION, false ) );
+ $import_fields = unserialize( get_option( $option_name, false ) );
// go through the $import_fields array and find all fields
// that are needed for the import
$import_fields = array_filter( $import_fields );
+ if ( isset( $_REQUEST['offset'] ) ) {
+ $offset = filter_var( $_REQUEST['offset'], FILTER_VALIDATE_INT );
+ }
+ $offset = filter_var( $_REQUEST['offset'], FILTER_VALIDATE_INT );
- $search_criteria = array( 'status' => 'active' );
- $sorting = array();
- $paging = array( 'offset' => 0, 'page_size' => 100 );
- $total_count = 0;
- $entries = GFAPI::get_entries( $form_id, $search_criteria, $sorting, $paging, $total_count );
- $result = '<pre>$import_fields: ' . print_r( $import_fields, true ) . '</pre>';
- $result .= '<p>Total County: ' . $total_count . '</p>';
- $result .= '<pre>$entries: ' . print_r( $entries, true ) . '</pre>';
- if ( $entries ) {
- foreach ( $entries as $entry ) {
- $lead_entry = array(
- 'fname' => '',
- 'lname' => '',
- 'org' => '',
- 'addr1' => '',
- 'addr2' => '',
- 'city' => '',
- 'state' => '',
- 'zip' => '',
- 'country' => '',
- 'email' => '',
- 'phone' => '',
- 'phone2' => '',
- 'fax' => '',
- 'mail_ok' => '',
- 'member_ok' => ''
- );
+ // Only get the entries when we have offset given and it is not === false
+ if ( $offset !== false ) {
+ $next_offset = $offset + $page_size;
+ // Setup arguments for the get_entries call.
+ $search_criteria = array( 'status' => 'active' );
+ $sorting = array();
+ $paging = array( 'offset' => $offset, 'page_size' => $page_size );
+ $total_count = 0;
+ $entries = GFAPI::get_entries( $form_id, $search_criteria, $sorting, $paging, $total_count );
+ $result = '<pre>$import_fields: ' . print_r( $import_fields, true ) . '</pre>';
+ //$result .= '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
+ $result .= '<p>Total Count: ' . $total_count . '</p>';
+ //$result .= '<pre>$entries: ' . print_r( $entries, true ) . '</pre>';
+ if ( $entries ) {
+ foreach ( $entries as $entry ) {
+ $this->addEntry( $entry, $import_fields );
+ }
+ }
+ } else {
+ $next_offset = 0;
+ /* If your here then it is the first page after the form setup
+ * Let's get the interest groups and interests created from the form
+ */
+ $mapped_keys = $this->config['mapped_keys'];
+ $result = '<pre>$mapped_keys: ' . print_r( $mapped_keys, true ) . '</pre>';
+ $result .= '<pre>$import_fields: ' . print_r( $import_fields, true ) . '</pre>';
+ $array_diff = array_diff( $import_fields, $mapped_keys );
+ $result .= '<pre>$array_diff: ' . print_r( $array_diff, true ) . '</pre>';
+ if ( !empty( $array_diff ) ) {
+ foreach ( $array_diff as $group_id => $group_name ) {
+ $this->addInterestGroup( $form, $group_id, $group_name );
+ }
}
+ //$result .= '<pre>$form: ' . print_r( $form, true ) . '</pre>';
+ // anything in this $array_diff will be our new interest_groups
+
}
} else {
// try to get import fields options
- $import_fields = unserialize( get_option( GLM_MEMBERS_LEADS_PLUGIN_IMPORT_OPTION, false ) );
+ $import_fields = unserialize( get_option( $option_name, false ) );
}
break;
default:
$forms = GFAPI::get_forms();
- $result = '<pre>$forms: ' . print_r( $forms, true ) . '</pre>';
+ //$result = '<pre>$forms: ' . print_r( $forms, true ) . '</pre>';
break;
}
'sources' => $sources,
'option2' => $option2,
'result' => $result,
+ 'offset' => $offset,
+ 'next_offset' => $next_offset,
);
// Return status, suggested view, and data to controller
}
+ public function addInterestGroup( $form, $field_id, $group_name ) {
+ $interests = array();
+ // go through the $form array and get all the inputs for the group_name field
+ if ( isset( $form['fields'] ) && is_array( $form['fields'] ) && !empty( $form['fields'] ) ) {
+ foreach ( $form['fields'] as $fields ) {
+ // Only need to get the field that matches $field_id
+ if ( $fields['id'] === $field_id ) {
+ switch ( $fields['type'] ) {
+ case 'checkbox':
+ if ( isset( $fields['inputs'] ) && is_array( $fields['inputs'] ) && !empty( $fields['inputs'] ) ) {
+ $interests = $fields['inputs'];
+ //echo '<pre>$fields[inputs]: ' . print_r( $fields['inputs'], true ) . '</pre>';
+ }
+ break;
+ }
+ }
+ }
+ }
+ if ( $interests ) {
+ // Add the Group
+ $group_id = $this->addGroup( $group_name );
+ if ( !$group_id ) {
+ throw Exception( 'Group not added' );
+ }
+ foreach ( $interests as $interest ) {
+ $this->addInterest( $group_id, $interest['id'], $interest['label'] );
+ }
+ }
+ }
+
+ /**
+ * addGroup
+ *
+ * If the group is found it simply returns the group id.
+ * If the group is not found it will add the group and return the new id.
+ *
+ * @param mixed $name
+ *
+ * @access public
+ * @return int The id of the group
+ */
+ public function addGroup( $name ) {
+ // check for this group first.
+ $group = $this->wpdb->get_var(
+ $this->wpdb->prepare(
+ "SELECT id
+ FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "interest_groups
+ WHERE title = %s",
+ $name
+ )
+ );
+ if ( $group ) {
+ return $group;
+ } else {
+ // It is not in the db so add it.
+ $this->wpdb->insert(
+ GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . 'interest_groups',
+ array( 'title' => $name ),
+ array( '%s' )
+ );
+ return $this->wpdb->insert_id;
+ }
+ }
+
+ /**
+ * addInterest
+ *
+ * If the interest is found it simply returns the id.
+ * If the interest is not found for that group_id it will be added.
+ * The new id is returned.
+ *
+ * @param $group_id Group id for the lead interest_groups
+ * @param $gf_field_id Gravity Form Field Id for field input
+ * @param $name Name of the Interest
+ *
+ * @return int The id of the Interest
+ */
+ public function addInterest( $group_id, $gf_field_id, $name ) {
+ // check for this interest first.
+ $interest = $this->wpdb->get_var(
+ $this->wpdb->prepare(
+ "SELECT id
+ FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "interests
+ WHERE title = %s
+ AND group_id = %d",
+ $name,
+ $group_id
+ )
+ );
+ if ( $interest ) {
+ return $interest;
+ } else {
+ // It is not in the db so add it.
+ $this->wpdb->insert(
+ GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . 'interests',
+ array(
+ 'title' => $name,
+ 'group_id' => $group_id,
+ 'gf_field_id' => $gf_field_id
+ ),
+ array( '%s', '%d', '%s' )
+ );
+ return $this->wpdb->insert_id;
+ }
+ }
+ public function addEntry( $entry, $import_fields ) {
+ $lead = array();
+ $mapped_keys = $this->config['mapped_keys'];
+
+ if ( $entry ) {
+ $entry = array_filter( $entry );
+ echo '<pre>$entry: ' . print_r( $entry, true ) . '</pre>';
+ foreach ( $import_fields as $field_id => $mapped_name ) {
+ if ( isset( $entry[$field_id] ) ) {
+ $lead[$mapped_name] = $entry[$field_id];
+ }
+ }
+ echo '<pre>$lead: ' . print_r( $lead, true ) . '</pre>';
+ // If they don't have email then we cannot add them into leads table.
+ if ( !isset( $lead['email'] ) ) {
+ return false;
+ }
+ $member_lead_id = $this->addMemberLead( $lead );
+ echo '<pre>$member_lead_id: ' . print_r( $member_lead_id, true ) . '</pre>';
+
+ }
+ }
+ /**
+ * addMemberLead
+ *
+ * Check to see if leads already contains one with the same email.
+ * If not then create one.
+ * Returns the id of the lead.
+ *
+ * @param mixed $lead Array with the lead email, mail_ok, member_ok fields
+ *
+ * @access public
+ * @return mixed False if no email is given. Lead id if found or inserted.
+ */
+ public function addMemberLead( $lead ) {
+ if ( !isset( $lead['email'] ) || !filter_var( $lead['email'], FILTER_VALIDATE_EMAIL ) ) {
+ return false;
+ }
+ $lead_id = $this->wpdb->get_var(
+ $this->wpdb->prepare(
+ "SELECT id
+ FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "leads
+ WHERE email = %s",
+ $lead['email']
+ )
+ );
+ if ( $lead_id ) {
+ return $lead_id;
+ } else {
+ $mapped_keys = $this->config['mapped_keys'];
+ $this->wpdb->insert(
+ GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . 'leads',
+ array(
+ 'email' => $lead['email'],
+ 'mail_ok' => ( $lead['mail_ok'] ) ? 1 : 0,
+ 'member_ok' => ( $lead['member_ok'] ) ? 1 : 0,
+ ),
+ array( '%s', '%s', '%s' )
+ );
+ return $this->wpdb->insert_id;
+ }
+ }
+ /**
+ * addMemberLeadEntry
+ *
+ * @param mixed $lead_id Id from the leads table
+ * @param mixed $lead Lead array
+ * @param mixed $entry Entry array
+ *
+ * @access public
+ * @return void
+ */
+ public function addMemberLeadEntry( $lead_id, $lead, $entry ) {
+ if ( !isset( $lead_id ) || !filter_var( $lead_id, FILTER_VALIDATE_INT ) ) {
+ return false;
+ }
+ if ( !isset( $lead ) || !is_array( $lead ) ) {
+ return false;
+ }
+ $this->wpdb->insert(
+ GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . 'lead_entry',
+ array(
+ 'fname' => '',
+ 'lname' => '',
+ 'org' => '',
+ 'addr1' => '',
+ 'addr2' => '',
+ 'city' => '',
+ 'state' => '',
+ 'zip' => '',
+ 'country' => '',
+ 'phone' => '',
+ 'phone2' => '',
+ 'fax' => '',
+ 'user_trace_info' => '',
+ ),
+ array()
+ );
+ }
}
--- /dev/null
+let SessionLoad = 1
+if &cp | set nocp | endif
+let s:cpo_save=&cpo
+set cpo&vim
+inoremap <silent> <C-Tab> \16\12=UltiSnips#ListSnippets()\16\r
+snoremap <silent> \16\b \16\ac
+xnoremap <silent> \16 :call UltiSnips#SaveLastVisualSelection()\16\rgvs
+snoremap <silent> \16 \16\e:call UltiSnips#ExpandSnippet()\16\r
+map \16\ e :NERDTreeToggle\16\r
+snoremap \16\12 \16\a"_c\16\12
+xmap ,pa <Plug>PIVphpAlign
+nmap ,pa <Plug>PIVphpAlign
+xmap ,pd <Plug>PIVphpDocRange
+nmap ,pd <Plug>PIVphpDocSingle
+nmap <silent> ,w,y <Plug>VimwikiMakeYesterdayDiaryNote
+nmap <silent> ,w,t <Plug>VimwikiTabMakeDiaryNote
+nmap <silent> ,w,w <Plug>VimwikiMakeDiaryNote
+nmap <silent> ,w,i <Plug>VimwikiDiaryGenerateLinks
+nmap <silent> ,wi <Plug>VimwikiDiaryIndex
+nmap <silent> ,ws <Plug>VimwikiUISelect
+nmap <silent> ,wt <Plug>VimwikiTabIndex
+nmap <silent> ,ww <Plug>VimwikiIndex
+nmap ,j <Plug>(CommandTJump)
+nmap ,b <Plug>(CommandTBuffer)
+nmap ,t <Plug>(CommandT)
+nmap ,n \16\e:tabnext\16\r
+xmap ,n \16\e:tabnext\16\r
+omap ,n \16\e:tabnext\16\r
+nmap ,p \16\e:tabprev\16\r
+xmap ,p \16\e:tabprev\16\r
+omap ,p \16\e:tabprev\16\r
+nmap ,gp :Git push\16\r
+xmap ,gp :Git push\16\r
+omap ,gp :Git push\16\r
+nmap ,gl :Glog\16\r
+xmap ,gl :Glog\16\r
+omap ,gl :Glog\16\r
+nmap ,gb :Gblame\16\r
+xmap ,gb :Gblame\16\r
+omap ,gb :Gblame\16\r
+nmap ,gc :Gcommit\16\r
+xmap ,gc :Gcommit\16\r
+omap ,gc :Gcommit\16\r
+nmap ,gd :Gdiff\16\r
+xmap ,gd :Gdiff\16\r
+omap ,gd :Gdiff\16\r
+nmap ,gs :Gstatus\16\r
+xmap ,gs :Gstatus\16\r
+omap ,gs :Gstatus\16\r
+xmap ,a: :Tabularize /:\zs\16\r
+nmap ,a: :Tabularize /:\zs\16\r
+xmap ,a= :Tabularize /=\16\r
+nmap ,a= :Tabularize /=\16\r
+nmap ,v :tabedit $MYVIMRC\16\r
+nmap ,l :set list!\16\r
+vnoremap \16< \16<gv " better indentation
+xnoremap > >gv " better indentation
+nmap Q gq
+xmap Q gq
+omap Q gq
+xmap [% \16\e[%m'gv``
+xmap ]% \16\e]%m'gv``
+xmap a% \16\e[%v]%
+nmap cr <Plug>Coerce
+xmap gx <Plug>NetrwBrowseXVis
+nmap gx <Plug>NetrwBrowseX
+noremap <silent> <Plug>AirlineSelectNextTab :\16\15exe repeat(':tabn\16|', v:count1)\16\r
+noremap <silent> <Plug>AirlineSelectPrevTab gT
+noremap <silent> <Plug>AirlineSelectTab9 :9tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab8 :8tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab7 :7tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab6 :6tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab5 :5tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab4 :4tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab3 :3tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab2 :2tabn\16\r
+noremap <silent> <Plug>AirlineSelectTab1 :1tabn\16\r
+vnoremap <silent> <Plug>PIVphpAlign :call PhpAlign()\16\r
+vnoremap <silent> <Plug>PIVphpDocRange :call PhpDocRange()\16\r
+nnoremap <silent> <Plug>PIVphpDocSingle :call PhpDocSingle()\16\r
+vnoremap <silent> <Plug>NetrwBrowseXVis :\16\15call netrw#BrowseXVis()\16\r
+nnoremap <silent> <Plug>NetrwBrowseX :call netrw#BrowseX(expand((exists("g:netrw_gx")? g:netrw_gx : '\16<cfile>')),netrw#CheckIfRemote())\16\r
+snoremap <silent> <Del> \16\ac
+snoremap <silent> <BS> \16\ac
+snoremap <silent> <C-Tab> \16\e:call UltiSnips#ListSnippets()\16\r
+nnoremap <silent> <Plug>(CommandTTag) :CommandTTag\16\r
+nnoremap <silent> <Plug>(CommandTSearch) :CommandTSearch\16\r
+nnoremap <silent> <Plug>(CommandTMRU) :CommandTMRU\16\r
+nnoremap <silent> <Plug>(CommandTLine) :CommandTLine\16\r
+nnoremap <silent> <Plug>(CommandTCommand) :CommandTCommand\16\r
+nnoremap <silent> <Plug>(CommandTJump) :CommandTJump\16\r
+nnoremap <silent> <Plug>(CommandTHistory) :CommandTHistory\16\r
+nnoremap <silent> <Plug>(CommandTHelp) :CommandTHelp\16\r
+nnoremap <silent> <Plug>(CommandTBuffer) :CommandTBuffer\16\r
+nnoremap <silent> <Plug>(CommandT) :CommandT\16\r
+nnoremap <SNR>21_: :\16\15\16\12=v:count ? v:count : ''\16\r
+map <F7> \16\e:DisablePHPFolds\16\r
+map <F6> \16\e:EnablePHPFolds\16\r
+map <F5> \16\e:EnableFastPHPFolds\16\r
+nmap <F8> :TagbarToggle\16\r
+noremap <Right> <Nop>
+noremap <Left> <Nop>
+noremap <Down> <Nop>
+noremap <Up> <Nop>
+map <F12> \16\e:syntax sync fromstart\16\r
+inoremap <silent> \16 \16\12=UltiSnips#ExpandSnippet()\16\r
+let &cpo=s:cpo_save
+unlet s:cpo_save
+set autoindent
+set background=dark
+set backspace=2
+set expandtab
+set fileencodings=ucs-bom,utf-8,default,latin1
+set helplang=en
+set hlsearch
+set keywordprg=:help
+set listchars=tab:▸\ ,eol:¬
+set mouse=a
+set ruler
+set runtimepath=~/.vim,~/.vim/bundle/Vundle.vim,~/.vim/bundle/vim-fugitive,~/.vim/bundle/L9,~/.vim/bundle/command-t,~/.vim/bundle/sparkup/vim/,~/.vim/bundle/ultisnips,~/.vim/bundle/vim-abolish,~/.vim/bundle/vim-colorschemes,~/.vim/bundle/tabular,~/.vim/bundle/PIV,~/.vim/bundle/vim-autotag,~/.vim/bundle/vimwiki,~/.vim/bundle/nerdtree,~/.vim/bundle/vim-airline,~/.vim/bundle/vim-airline-themes,~/.vim/bundle/vim-bufferline,~/.vim/bundle/tagbar,~/.vim/bundle/vim-javascript,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,~/.vim/after,~/.vim/bundle/Vundle.vim,~/.vim/bundle/Vundle.vim/after,~/.vim/bundle/vim-fugitive/after,~/.vim/bundle/L9/after,~/.vim/bundle/command-t/after,~/.vim/bundle/sparkup/vim//after,~/.vim/bundle/ultisnips/after,~/.vim/bundle/vim-abolish/after,~/.vim/bundle/vim-colorschemes/after,~/.vim/bundle/tabular/after,~/.vim/bundle/PIV/after,~/.vim/bundle/vim-autotag/after,~/.vim/bundle/vimwiki/after,~/.vim/bundle/nerdtree/after,~/.vim/bundle/vim-airline/after,~/.vim/bundle/vim-airline-themes/after,~/.vim/bundle/vim-bufferline/after,~/.vim/bundle/tagbar/after,~/.vim/bundle/vim-javascript/after
+set shiftwidth=4
+set showtabline=2
+set softtabstop=4
+set suffixes=.bak,~,.o,.h,.info,.swp,.obj,.info,.aux,.log,.dvi,.bbl,.out,.o,.lo
+set tabline=%!airline#extensions#tabline#get()
+set tabstop=4
+let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
+let v:this_session=expand("<sfile>:p")
+silent only
+cd /var/www/saultstemarie/wp-content/plugins/glm-member-db-leads
+if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
+ let s:wipebuf = bufnr('%')
+endif
+set shortmess=aoO
+badd +112 models/admin/leads/index.php
+badd +305 models/admin/management/leads.php
+badd +38 defines.php
+badd +0 views/admin/management/leads.html
+badd +146 setup/frontHooks.php
+badd +27 config/plugin.ini
+badd +88 setup/databaseScripts/create_database_V0.0.4.sql
+badd +1 setup/databaseScripts/create_database_V0.0.3.sql
+badd +11 setup/databaseScripts/update_database_V0.0.4.sql
+badd +20 setup/databaseScripts/dbVersions.php
+badd +0 index.php
+argglobal
+silent! argdel *
+argadd models/admin/leads/index.php
+edit index.php
+set splitbelow splitright
+wincmd _ | wincmd |
+vsplit
+1wincmd h
+wincmd _ | wincmd |
+split
+wincmd _ | wincmd |
+split
+2wincmd k
+wincmd w
+wincmd w
+wincmd w
+wincmd _ | wincmd |
+split
+1wincmd k
+wincmd w
+set nosplitbelow
+set nosplitright
+wincmd t
+set winheight=1 winwidth=1
+exe '1resize ' . ((&lines * 27 + 42) / 84)
+exe 'vert 1resize ' . ((&columns * 133 + 139) / 279)
+exe '2resize ' . ((&lines * 26 + 42) / 84)
+exe 'vert 2resize ' . ((&columns * 133 + 139) / 279)
+exe '3resize ' . ((&lines * 26 + 42) / 84)
+exe 'vert 3resize ' . ((&columns * 133 + 139) / 279)
+exe '4resize ' . ((&lines * 40 + 42) / 84)
+exe 'vert 4resize ' . ((&columns * 145 + 139) / 279)
+exe '5resize ' . ((&lines * 40 + 42) / 84)
+exe 'vert 5resize ' . ((&columns * 145 + 139) / 279)
+argglobal
+onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+let s:cpo_save=&cpo
+set cpo&vim
+imap <buffer> \16\ 5 <Plug>SparkupExecute
+imap <buffer> \16\ e <Plug>SparkupNext
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal noautoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s1:/*,mb:*,ex:*/,://,:#
+setlocal commentstring=/*%s*/
+setlocal complete=.,w,b,u,t,i
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=
+setlocal dictionary=
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=
+setlocal expandtab
+if &filetype != 'php'
+setlocal filetype=php
+endif
+setlocal foldcolumn=0
+setlocal nofoldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=qrowcb
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=\\(require\\\16|include\\)\\(_once\\)\\?
+setlocal includeexpr=
+setlocal indentexpr=GetPhpIndent()
+setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255,$
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=phpcomplete#CompletePHP
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(1)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'php'
+setlocal syntax=php
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=0
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal wrap
+setlocal wrapmargin=0
+silent! normal! zE
+40,40fold
+41,41fold
+44,44fold
+81,81fold
+84,84fold
+87,87fold
+103,110fold
+119,128fold
+131,131fold
+139,139fold
+140,140fold
+142,142fold
+151,181fold
+194,194fold
+191,196fold
+203,203fold
+200,206fold
+212,212fold
+214,218fold
+229,229fold
+223,233fold
+let s:l = 97 - ((21 * winheight(0) + 13) / 27)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+97
+normal! 0
+wincmd w
+argglobal
+edit setup/databaseScripts/create_database_V0.0.4.sql
+let s:cpo_save=&cpo
+set cpo&vim
+inoremap <buffer> <Left> \16\12=sqlcomplete#DrillOutOfColumns()\16\r
+inoremap <buffer> <Right> \16\12=sqlcomplete#DrillIntoTable()\16\r
+xnoremap <buffer> <silent> [" :\16\15exec "normal! gv"\16|call search('\(^\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\).*\n\)\(^\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\)\)\@!', "W" )\16\r
+nnoremap <buffer> <silent> [" :call search('\(^\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\).*\n\)\(^\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\)\)\@!', "W" )\16\r
+xnoremap <buffer> <silent> [{ ?\c^\s*\(\(create\)\s\+\(or\s\+replace\s\+\)\{,1}\)\{,1}\\16<\(function\\16|procedure\\16|event\\16|\(existing\\16|global\s\+temporary\s\+\)\{,1}table\\16|trigger\\16|schema\\16|service\\16|publication\\16|database\\16|datatype\\16|domain\\16|index\\16|subscription\\16|synchronization\\16|view\\16|variable\)\>\16\r
+nnoremap <buffer> <silent> [{ :call search('\c^\s*\(\(create\)\s\+\(or\s\+replace\s\+\)\{,1}\)\{,1}\\16<\(function\\16|procedure\\16|event\\16|\(existing\\16|global\s\+temporary\s\+\)\{,1}table\\16|trigger\\16|schema\\16|service\\16|publication\\16|database\\16|datatype\\16|domain\\16|index\\16|subscription\\16|synchronization\\16|view\\16|variable\)\>', 'bW')\16\r
+xnoremap <buffer> <silent> [] :\16\15exec "normal! gv"\16|call search('\c^\s*end\W*$', 'bW' )\16\r
+xnoremap <buffer> <silent> [[ :\16\15exec "normal! gv"\16|call search('\c^\s*begin\>', 'bW' )\16\r
+nnoremap <buffer> <silent> [] :call search('\c^\s*end\W*$', 'bW' )\16\r
+nnoremap <buffer> <silent> [[ :call search('\c^\s*begin\>', 'bW' )\16\r
+xnoremap <buffer> <silent> ]" :\16\15exec "normal! gv"\16|call search('^\(\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\).*\n\)\@\16<!\(\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\)\)', "W" )\16\r
+nnoremap <buffer> <silent> ]" :call search('^\(\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\).*\n\)\@\16<!\(\s*\(--\\16|\/\/\\16|\*\\16|\/\*\\16|\*\/\)\)', "W" )\16\r
+xnoremap <buffer> <silent> ]} /\c^\s*\(\(create\)\s\+\(or\s\+replace\s\+\)\{,1}\)\{,1}\\16<\(function\\16|procedure\\16|event\\16|\(existing\\16|global\s\+temporary\s\+\)\{,1}table\\16|trigger\\16|schema\\16|service\\16|publication\\16|database\\16|datatype\\16|domain\\16|index\\16|subscription\\16|synchronization\\16|view\\16|variable\)\>\16\r
+nnoremap <buffer> <silent> ]} :call search('\c^\s*\(\(create\)\s\+\(or\s\+replace\s\+\)\{,1}\)\{,1}\\16<\(function\\16|procedure\\16|event\\16|\(existing\\16|global\s\+temporary\s\+\)\{,1}table\\16|trigger\\16|schema\\16|service\\16|publication\\16|database\\16|datatype\\16|domain\\16|index\\16|subscription\\16|synchronization\\16|view\\16|variable\)\>', 'W')\16\r
+xnoremap <buffer> <silent> ][ :\16\15exec "normal! gv"\16|call search('\c^\s*end\W*$', 'W' )\16\r
+xnoremap <buffer> <silent> ]] :\16\15exec "normal! gv"\16|call search('\c^\s*begin\>', 'W' )\16\r
+nnoremap <buffer> <silent> ][ :call search('\c^\s*end\W*$', 'W' )\16\r
+nnoremap <buffer> <silent> ]] :call search('\c^\s*begin\>', 'W' )\16\r
+inoremap <buffer> \16\ 3R \16\1c\16\ f:call sqlcomplete#Map("resetCache")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3L \16\19\16\1c\16\ f:call sqlcomplete#Map("column_csv")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3l \16\1c\16\ f:call sqlcomplete#Map("column_csv")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3c \16\1c\16\ f:call sqlcomplete#Map("column")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3v \16\1c\16\ f:call sqlcomplete#Map("view")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3p \16\1c\16\ f:call sqlcomplete#Map("procedure")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3t \16\1c\16\ f:call sqlcomplete#Map("table")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3s \16\1c\16\ f:call sqlcomplete#Map("sqlStatement\\w*")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3T \16\1c\16\ f:call sqlcomplete#Map("sqlType\\w*")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3o \16\1c\16\ f:call sqlcomplete#Map("sqlOption\\w*")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3f \16\1c\16\ f:call sqlcomplete#Map("sqlFunction\\w*")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3k \16\1c\16\ f:call sqlcomplete#Map("sqlKeyword\\w*")\16\r\16\18\16\ f
+inoremap <buffer> \16\ 3a \16\1c\16\ f:call sqlcomplete#Map("syntax")\16\r\16\18\16\ f
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal autoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s1:/*,mb:*,ex:*/,:--,://
+setlocal commentstring=/*%s*/
+setlocal complete=.,w,b,u,t,i
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=\\c\\<\\(VARIABLE\\\16|DECLARE\\\16|IN\\\16|OUT\\\16|INOUT\\)\\>
+setlocal dictionary=
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=
+setlocal expandtab
+if &filetype != 'sql'
+setlocal filetype=sql
+endif
+setlocal foldcolumn=0
+setlocal foldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=qc
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=
+setlocal includeexpr=
+setlocal indentexpr=GetSQLIndent()
+setlocal indentkeys=!^F,o,O,=~end,=~else,=~elseif,=~elsif,0=~when,0=)
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=sqlcomplete#Complete
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(2)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'sql'
+setlocal syntax=sql
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=0
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal wrap
+setlocal wrapmargin=0
+silent! normal! zE
+let s:l = 74 - ((5 * winheight(0) + 13) / 26)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+74
+normal! 022|
+wincmd w
+argglobal
+edit models/admin/leads/index.php
+vnoremap <buffer> ' "zdi\16\16'\16\12z'\16\e
+vnoremap <buffer> ( "zdi\16\16(\16\12z)\16\e
+onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+vnoremap <buffer> [ "zdi\16\16[\16\12z]\16\e
+onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+vnoremap <buffer> { "zdi\16\16{\16\12z}\16\e
+let s:cpo_save=&cpo
+set cpo&vim
+imap <buffer> \16\ 5 <Plug>SparkupExecute
+inoremap <buffer> \16\b \16\e:!phpm \16\12=expand("\16<cword>")\16\r\16\r
+imap <buffer> \16\ e <Plug>SparkupNext
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal noautoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s1:/*,mb:*,ex:*/,://,:#
+setlocal commentstring=/*%s*/
+setlocal complete=.,w,b,u,t,i,k
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=
+setlocal dictionary=/usr/share/vim/vim74/bundle/PIV/misc/funclist.txt
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=%m\ in\ %f\ on\ line\ %l
+setlocal expandtab
+if &filetype != 'php'
+setlocal filetype=php
+endif
+setlocal foldcolumn=0
+setlocal foldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=qrowcb
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=\\(require\\\16|include\\)\\(_once\\)\\?
+setlocal includeexpr=
+setlocal indentexpr=GetPhpIndent()
+setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255,$
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=php\ -l\ %
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=phpcomplete#CompletePHP
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(3)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'php'
+setlocal syntax=php
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=79
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal nowrap
+setlocal wrapmargin=0
+silent! normal! zE
+17,17fold
+18,18fold
+19,19fold
+20,20fold
+66,85fold
+283,285fold
+460,460fold
+466,466fold
+544,544fold
+719,719fold
+745,745fold
+86,822fold
+86
+normal! zo
+let s:l = 146 - ((8 * winheight(0) + 13) / 26)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+146
+normal! 029|
+wincmd w
+argglobal
+edit models/admin/management/leads.php
+onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+let s:cpo_save=&cpo
+set cpo&vim
+imap <buffer> \16\ 5 <Plug>SparkupExecute
+imap <buffer> \16\ e <Plug>SparkupNext
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal noautoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s1:/*,mb:*,ex:*/,://,:#
+setlocal commentstring=/*%s*/
+setlocal complete=.,w,b,u,t,i
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=
+setlocal dictionary=
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=
+setlocal expandtab
+if &filetype != 'php'
+setlocal filetype=php
+endif
+setlocal foldcolumn=0
+setlocal foldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=qrowcb
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=\\(require\\\16|include\\)\\(_once\\)\\?
+setlocal includeexpr=
+setlocal indentexpr=GetPhpIndent()
+setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255,$
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=phpcomplete#CompletePHP
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(4)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'php'
+setlocal syntax=php
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=0
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal wrap
+setlocal wrapmargin=0
+silent! normal! zE
+2,16fold
+70,108fold
+109,286fold
+287,316fold
+317,350fold
+351,391fold
+70
+normal! zo
+109
+normal! zo
+let s:l = 232 - ((25 * winheight(0) + 20) / 40)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+232
+normal! 037|
+wincmd w
+argglobal
+edit models/admin/management/leads.php
+onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)?\16\r:nohls\16\r
+onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\\16|final\s\+\\16|private\s\+\\16|protected\s\+\\16|public\s\+\\16|static\s\+\)*function\\16|\(abstract\s\+\\16|final\s\+\)*class\\16|interface\)/\16\r:nohls\16\r
+let s:cpo_save=&cpo
+set cpo&vim
+imap <buffer> \16\ 5 <Plug>SparkupExecute
+imap <buffer> \16\ e <Plug>SparkupNext
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal noautoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s1:/*,mb:*,ex:*/,://,:#
+setlocal commentstring=/*%s*/
+setlocal complete=.,w,b,u,t,i
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=
+setlocal dictionary=
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=
+setlocal expandtab
+if &filetype != 'php'
+setlocal filetype=php
+endif
+setlocal foldcolumn=0
+setlocal foldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=qrowcb
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=\\(require\\\16|include\\)\\(_once\\)\\?
+setlocal includeexpr=
+setlocal indentexpr=GetPhpIndent()
+setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255,$
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=phpcomplete#CompletePHP
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(5)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'php'
+setlocal syntax=php
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=0
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal wrap
+setlocal wrapmargin=0
+silent! normal! zE
+2,16fold
+70,108fold
+109,286fold
+287,316fold
+317,350fold
+351,391fold
+70
+normal! zo
+109
+normal! zo
+let s:l = 213 - ((6 * winheight(0) + 20) / 40)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+213
+normal! 049|
+wincmd w
+5wincmd w
+exe '1resize ' . ((&lines * 27 + 42) / 84)
+exe 'vert 1resize ' . ((&columns * 133 + 139) / 279)
+exe '2resize ' . ((&lines * 26 + 42) / 84)
+exe 'vert 2resize ' . ((&columns * 133 + 139) / 279)
+exe '3resize ' . ((&lines * 26 + 42) / 84)
+exe 'vert 3resize ' . ((&columns * 133 + 139) / 279)
+exe '4resize ' . ((&lines * 40 + 42) / 84)
+exe 'vert 4resize ' . ((&columns * 145 + 139) / 279)
+exe '5resize ' . ((&lines * 40 + 42) / 84)
+exe 'vert 5resize ' . ((&columns * 145 + 139) / 279)
+tabedit views/admin/management/leads.html
+set splitbelow splitright
+set nosplitbelow
+set nosplitright
+wincmd t
+set winheight=1 winwidth=1
+argglobal
+let s:cpo_save=&cpo
+set cpo&vim
+imap <buffer> \16\ 5 <Plug>SparkupExecute
+imap <buffer> \16\ e <Plug>SparkupNext
+let &cpo=s:cpo_save
+unlet s:cpo_save
+setlocal keymap=
+setlocal noarabic
+setlocal autoindent
+setlocal backupcopy=
+setlocal nobinary
+setlocal nobreakindent
+setlocal breakindentopt=
+setlocal bufhidden=
+setlocal buflisted
+setlocal buftype=
+setlocal nocindent
+setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
+setlocal cinoptions=j1,J1
+setlocal cinwords=if,else,while,do,for,switch
+setlocal colorcolumn=
+setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
+setlocal commentstring=<!--%s-->
+setlocal complete=.,w,b,u,t,i
+setlocal concealcursor=
+setlocal conceallevel=0
+setlocal completefunc=
+setlocal nocopyindent
+setlocal cryptmethod=
+setlocal nocursorbind
+setlocal nocursorcolumn
+setlocal nocursorline
+setlocal define=
+setlocal dictionary=
+setlocal nodiff
+setlocal equalprg=
+setlocal errorformat=
+setlocal expandtab
+if &filetype != 'html'
+setlocal filetype=html
+endif
+setlocal foldcolumn=0
+setlocal foldenable
+setlocal foldexpr=0
+setlocal foldignore=#
+setlocal foldlevel=0
+setlocal foldmarker={{{,}}}
+setlocal foldmethod=manual
+setlocal foldminlines=1
+setlocal foldnestmax=20
+set foldtext=PHPFoldText()
+setlocal foldtext=PHPFoldText()
+setlocal formatexpr=
+setlocal formatoptions=tcq
+setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
+setlocal grepprg=
+setlocal iminsert=0
+setlocal imsearch=0
+setlocal include=
+setlocal includeexpr=
+setlocal indentexpr=HtmlIndent()
+setlocal indentkeys=o,O,<Return>,<>>,{,},!^F
+setlocal noinfercase
+setlocal iskeyword=@,48-57,_,192-255,$
+setlocal keywordprg=
+setlocal nolinebreak
+setlocal nolisp
+setlocal lispwords=
+set list
+setlocal list
+setlocal makeprg=
+setlocal matchpairs=(:),{:},[:],<:>
+setlocal modeline
+setlocal modifiable
+setlocal nrformats=octal,hex
+set number
+setlocal number
+setlocal numberwidth=4
+setlocal omnifunc=htmlcomplete#CompleteTags
+setlocal path=
+setlocal nopreserveindent
+setlocal nopreviewwindow
+setlocal quoteescape=\\
+setlocal noreadonly
+setlocal norelativenumber
+setlocal norightleft
+setlocal rightleftcmd=search
+setlocal noscrollbind
+setlocal shiftwidth=4
+setlocal noshortname
+setlocal nosmartindent
+setlocal softtabstop=4
+set spell
+setlocal spell
+setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
+setlocal spellfile=
+setlocal spelllang=en
+setlocal statusline=%!airline#statusline(1)
+setlocal suffixesadd=
+setlocal swapfile
+setlocal synmaxcol=3000
+if &syntax != 'html'
+setlocal syntax=html
+endif
+setlocal tabstop=4
+setlocal tags=
+setlocal textwidth=0
+setlocal thesaurus=
+setlocal noundofile
+setlocal undolevels=-123456
+setlocal nowinfixheight
+setlocal nowinfixwidth
+setlocal wrap
+setlocal wrapmargin=0
+silent! normal! zE
+let s:l = 120 - ((58 * winheight(0) + 41) / 82)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+120
+normal! 0146|
+tabnext 1
+if exists('s:wipebuf')
+ silent exe 'bwipe ' . s:wipebuf
+endif
+unlet! s:wipebuf
+set winheight=1 winwidth=20 shortmess=filnxtToO
+let s:sx = expand("<sfile>:p:r")."x.vim"
+if file_readable(s:sx)
+ exe "source " . fnameescape(s:sx)
+endif
+let &so = s:so_save | let &siso = s:siso_save
+doautoall SessionLoadPost
+unlet SessionLoad
+" vim: set ft=vim :