e107inc/e107

View on GitHub
e107_admin/cpage.php

Summary

Maintainability
A
0 mins
Test Coverage
F
28%

Assigning array{} to property but \page_admin_ui->grid is array{title:'menu_title',image:'menu_image',body:'',class:'col-md-2',perPage:12,carousel:false}
Open

                $this->grid = array();
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string url name></string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

                $this->fields['chapter_sef']['title'] = LAN_SEFURL.' / '.LAN_NAME;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['menu_image']['readParms'] = 'thumb=60x55';
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

            $this->fields['page_metarobots']['writeParms']['multiple'] = 1;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['page_template']['writeParms'] = $this->templates;            
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array{0:'page_id',1:'page_title',2:'page_chapter',3:'page_template',4:'menu_title',5:'menu_image',6:'menu_template'} to property but \page_admin_ui->fieldpref is array{0:'page_id',1:'page_title',2:'page_chapter',3:'page_template',4:'page_author',5:'page_class'}
Open

                $this->fieldpref = array("page_id", "page_title", 'page_chapter', 'page_template', "menu_title", 'menu_image', 'menu_template' );
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->prefs is array{listPages:array{title:'List pages if no page selected',type:'boolean'},listBooks:array{title:'List Books/Chapters',type:'boolean'},listBooksTemplate:array{title:'List Books/Chapters Template',type:'dropdown'},pageCookieExpire:array{title:'Expiry time for cookie \x28in seconds\x29',type:'number'},admin_page_perpage:array{title:'Items per Page',type:'number'}}
Open

            $this->prefs['listBooksTemplate']['writeParms'] = $tmpl; 
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['options']['type'] = 'method';
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string>
Open

                    $this->fields['menu_name']['inline'] = true;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

            $this->fields['page_metarobots']['writeParms']['optArray'] = e107::getSingleton('eResponse')->getRobotTypes();
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['menu_name']['writeParms']     = array('pattern'=>'^[a-z0-9-]*');
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

            $this->fields['chapter_template']['writeParms'] = $tmpl; // e107::getLayouts('', 'chapter', 'front', '', true, false); // e107::getLayouts('', 'page', 'books', 'front', true, false); 
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['menu_button_url']['nolist'] = false;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

                    $this->fields['page_text']['writeParms']['default'] = $tmp['editor'];
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 2 (metaTitleID) is 'page-metatitle' but \eHelper::syncSEOTitle() takes \str defined at /code/e107_handlers/application.php:5334
Open

            eHelper::syncSEOTitle('page-title', 'page-metatitle');
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

            $this->fields['chapter_fields'] = array('title'=>"Fields", 'tab'=>1, 'type'=>'method', 'data'=>'json', 'writeParms'=>array('nolabel'=>2));
Severity: Minor
Found in e107_admin/cpage.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

        if(!getperms('J1')) // Page/Menu Delete Perms.
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['page_chapter']['writeParms']['optArray'] = $this->cats;
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 3 (default) is 100 but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

            $seoTitleLimit = (int) e107::pref('core', 'seo_title_limit', 100);
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 3 (default) is 180 but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

            $seoDescriptionLimit = (int) e107::pref('core', 'seo_description_limit', 180);
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['menu_button_text']['nolist'] = false; 
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['menu_template']['writeParms'] = e107::getLayouts('', 'menu', 'front', '', true, false); 
Severity: Minor
Found in e107_admin/cpage.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

            if($this->getController()->getMode() === 'overview' && getperms('J1')) // Page/Menu Delete Perms.
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string also be used in shortcode name="x\x7d'}"></string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

                $this->fields['chapter_sef']['help'] = 'May also be used in shortcode {CHAPTER_MENUS: name=x}';
Severity: Minor
Found in e107_admin/cpage.php by phan

Suspicious array access to null
Open

            $new_data['menu_name'] = preg_replace('/[^\w\-*]/','-',$new_data['menu_name']);
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['menu_title']['width'] = 'auto';
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array{0:'page_id',1:'menu_name',2:'menu_title',3:'menu_image',4:'menu_template',5:'menu_icon',6:'page_chapter',7:'menu_class'} to property but \page_admin_ui->fieldpref is array{0:'page_id',1:'page_title',2:'page_chapter',3:'page_template',4:'page_author',5:'page_class'}
Open

                $this->fieldpref = array("page_id","menu_name", "menu_title", 'menu_image', 'menu_template', 'menu_icon', 'page_chapter', 'menu_class');
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['page_title']['width'] = 'auto';
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 1 (titleID) is 'page-title' but \eHelper::syncSEOTitle() takes \str defined at /code/e107_handlers/application.php:5334
Open

            eHelper::syncSEOTitle('page-title', 'page-metatitle');
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
Open

            $this->fields['page_metatitle']['help'] = e107::getParser()->lanVars(LAN_SEARCH_ENGINES_X_LIMIT, $seoTitleLimit);
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string></string>
Open

            $this->fields['page_metadscr']['writeParms']['counter'] = $seoDescriptionLimit;
Severity: Minor
Found in e107_admin/cpage.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms("5|J")) { e107::redirect('admin'); exit; }
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning false to property but \page_admin_ui->sortField is string
Open

                $this->sortField = false;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

                $this->fields['chapter_parent']['title'] = LAN_PARENT;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

            $this->fields['page_metarobots']['writeParms']['title'] = e107::getSingleton('eResponse')->getRobotDescriptions();
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',readParms:'',forced:true},menu_image:array{title:'Menu Image/Video',type:'image',width:'110px',thclass:'left',class:'left',nosort:false,readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',readonly:false},menu_icon:array{title:'Icon',type:'icon',width:'80px',thclass:'center',class:'center',nosort:false,readParms:'thumb=80&thumb_urlraw=0&thumb_aw=80',readonly:false},menu_title:array{title:'Menu Title',forced:true,type:'text',inline:true,width:'20%'},menu_name:array{title:'Menu Name',type:'text',inline:false,width:'10%',nolist:false,help:'Will be listed in the Menu-Manager under this name. Must use ASCII characters only.'},menu_template:array{title:'Menu Template',type:'dropdown',width:'15%',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Userclass',type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_datestamp:array{title:'Date',type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&readonly=1'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},menu_text:array{title:'Menu Body',type:'bbarea',data:'str',width:'auto',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page'},options:array{title:'Options',type:'method',noselector:true,forced:true,width:'10%',thclass:'center last',class:'center',readParms:'delete=0&deleteClass=255'}} to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string>
Open

                $this->fields = array(
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['page_chapter']['writeParms']['size'] = 'xxlarge';
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
Open

            $this->fields['page_metadscr']['help'] = e107::getParser()->lanVars(LAN_SEARCH_ENGINES_X_LIMIT, $seoDescriptionLimit);
Severity: Minor
Found in e107_admin/cpage.php by phan

Argument 3 (default) is 10 but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

            $this->perPage = (int) e107::pref('core','admin_page_perpage', 10);
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

                $this->fields['page_chapter']['writeParms']['ajax'] = array('src'=>e_SELF."?mode=page&action=chapter-change",'target'=>'tabadditional');
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array<string>&gt;|array<string>&gt;|array<string>|array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&amp;target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&amp;type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&amp;sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&amp;truncate=50&amp;bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&amp;thumb_urlraw=0&amp;thumb_aw=60',writeParms:'media=page^&amp;video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&amp;deleteClass=e_UC_NOBODY'}}</string></string></string>
Open

            $this->fields['page_metatitle']['writeParms']['counter'] = $seoTitleLimit;
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string>|array{}}&gt;</string> to property but \page_chapters_ui->fields is array{checkboxes:array{title:'',type:null,width:'5%',forced:true,thclass:'center',class:'center'},chapter_id:array{title:'ID',type:'number',width:'5%',forced:true,readonly:true},chapter_icon:array{title:'Icon',type:'icon',data:'str',width:'100px',thclass:'center',class:'center',writeParms:'glyphs=1',readonly:false,batch:false,filter:false},chapter_parent:array{title:'Book',type:'dropdown',width:'auto',thclass:'left',readonly:false,filter:true},chapter_name:array{title:'Book or Chapter Title',type:'method',width:'auto',thclass:'left',readonly:false,writeParms:'size=xxlarge'},chapter_template:array{title:'Template',type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},chapter_meta_description:array{title:'Description',type:'textarea',width:'auto',thclass:'left',readParms:'expand=...&truncate=150&bb=1',writeParms:'size=xxlarge',readonly:false},chapter_meta_keywords:array{title:'Keywords',type:'tags',inline:true,width:'auto',thclass:'left',readonly:false},chapter_sef:array{title:'SEF URL',type:'text',width:'auto',readonly:false,batch:true,inline:true,writeParms:'size=xxlarge&inline-empty=1&sef=chapter_name'},chapter_manager:array{title:'Can be edited by',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_order:array{title:'Order',type:'text',width:'auto',thclass:'right',class:'right'},chapter_visibility:array{title:'Visibility',type:'userclass',inline:true,width:'auto',data:'int',batch:true,filter:true},chapter_fields:array{0:'title',1:'hidden',type:'hidden'},chapter_image:array{title:'Image',type:'image',data:'str',width:'100px',thclass:'center',class:'center',readParms:'thumb=140&thumb_urlraw=0&thumb_aw=140',writeParms:'',readonly:false,batch:false,filter:false},options:array{title:'Options',type:'method',width:'10%',forced:true,thclass:'center last',class:'left',readParms:'sort=1'}}
Open

            $this->fields['chapter_parent']['writeParms'] = $this->books;    
Severity: Minor
Found in e107_admin/cpage.php by phan

Assigning array<string></string> to property but \page_admin_ui->fields is array{checkboxes:array{title:'',type:null,width:'3%',forced:true,thclass:'center',class:'center'},page_id:array{title:'ID',type:'text',tab:0,width:'5%',forced:true,readParms:'link=sef&target=blank'},page_title:array{title:'Page Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_subtitle:array{title:'Sub Title',tab:0,type:'text',data:'str',inline:true,width:'25%',writeParms:'size=block-level'},page_chapter:array{title:'Book/Chapter',tab:0,type:'dropdown',width:'20%',filter:true,batch:true,inline:true},page_template:array{title:'Template',tab:0,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:array{}},page_author:array{title:'Author',tab:0,type:'user',inline:true,data:'int',width:'auto',thclass:'left'},page_text:array{title:'Text',tab:0,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:array{media:'page^',template:'page'}},page_datestamp:array{title:'Date',tab:1,type:'datestamp',data:'int',width:'auto',writeParms:'auto=1&type=datetime',batch:true},page_class:array{title:'Visibility',tab:1,type:'userclass',data:'str',inline:true,width:'auto',filter:true,batch:true},page_rating_flag:array{title:'Rating',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_comment_flag:array{title:'Comments',tab:1,type:'boolean',data:'int',width:'5%',thclass:'center',class:'center'},page_password:array{title:'Password',tab:1,type:'text',data:'str',width:'auto',writeParms:array{password:1,nomask:1,size:40,class:'tbox e-password',generate:1,strength:1,required:0}},page_sef:array{title:'SEF URL',tab:1,type:'text',batch:true,data:'str',inline:true,width:'auto',writeParms:'size=xxlarge&sef=page_title'},page_metatitle:array{title:'Meta Title',tab:1,type:'text',data:'str',width:'auto',inline:true,writeParms:array{size:'xxlarge'}},page_metadscr:array{title:'Meta Description',tab:1,type:'textarea',data:'str',help:'Optional. Used by social media when sharing this page.',width:'auto',writeParms:array{size:'xxlarge',rows:2,maxlength:155}},page_metakeys:array{title:'Keywords',tab:1,type:'tags',data:'str',width:'auto',inline:true},page_metaimage:array{title:'Meta image',nolist:false,tab:1,type:'image',help:'Optional. Used by social media when sharing this page.',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},page_metarobots:array{title:'Robots',tab:1,type:'dropdown',data:'safestr',batch:true,inline:true,readParms:array{type:'checkboxes'},width:'auto',thclass:'left',class:'left',nosort:false,filter:true},page_order:array{title:'Order',tab:1,type:'number',width:'auto',inline:true},page_fields:array{title:'Custom Fields',tab:4,type:'hidden',data:'json',width:'auto'},menu_name:array{title:'Menu Name',tab:2,type:'text',inline:false,width:'auto',nolist:false,help:'Will be listed in the Menu-Manager under this name or may be called using \x7bCMENU=name\x7d in your theme. Must use ASCII characters only and be all lowercase.'},menu_title:array{title:'Menu Title',nolist:true,tab:2,type:'text',inline:true,width:'25%',help:'Caption displayed on the menu item.',writeParms:'size=xxlarge'},menu_text:array{title:'Menu Body',nolist:true,tab:2,type:'bbarea',data:'str',width:'30%',readParms:'expand=...&truncate=50&bb=1',writeParms:'media=page^'},menu_template:array{title:'Menu Template',nolist:true,tab:2,type:'dropdown',width:'auto',filter:true,batch:true,inline:true,writeParms:''},menu_class:array{title:'Visibility',tab:3,type:'userclass',data:'int',inline:true,width:'auto',filter:true,batch:true},menu_button_text:array{title:'Custom Button Text',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the default'},menu_button_url:array{title:'Custom Button URL',nolist:true,tab:3,type:'text',inline:true,width:'25%',help:'Leave blank to use the corresponding page',writeParms:'size=xxlarge'},menu_icon:array{title:'Menu Icon/Glyph',nolist:true,tab:2,type:'icon',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&glyphs=1',readonly:false},menu_image:array{title:'Menu Image/Video',nolist:true,tab:2,type:'image',width:'110px',thclass:'center',class:'center',nosort:false,readParms:'thumb=60&thumb_urlraw=0&thumb_aw=60',writeParms:'media=page^&video=1',readonly:false},options:array{title:'Options',type:null,forced:true,width:'10%',thclass:'center last',class:'center last',readParms:'sort=1&deleteClass=e_UC_NOBODY'}}
Open

                $this->fields['menu_image']['width'] = 'auto';
Severity: Minor
Found in e107_admin/cpage.php by phan

There are no issues that match your filters.

Category
Status