Home
last modified time | relevance | path

Searched refs:getChildren (Results 101 – 125 of 199) sorted by relevance

12345678

/plugin/combo/ComboStrap/
H A DFsWikiUtility.php52 static function getChildren(string $path): array function in ComboStrap\\FsWikiUtility
H A DLocalFileSystem.php130 public function getChildren(Path $path, string $type = null): array function in ComboStrap\\LocalFileSystem
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Asset/Iterator/
H A DAssetCollectionIterator.php112 public function getChildren() function in Assetic\\Asset\\Iterator\\AssetCollectionIterator
/plugin/findologicxmlexport/vendor/hoa/compiler/Llk/Rule/
H A DRule.php169 public function getChildren() function in Hoa\\Compiler\\Llk\\Rule\\Rule
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Filter/
H A DCssImportFilter.php103 public function getChildren(AssetFactory $factory, $content, $loadPath = null) function in Assetic\\Filter\\CssImportFilter
H A DLessphpFilter.php128 public function getChildren(AssetFactory $factory, $content, $loadPath = null) function in Assetic\\Filter\\LessphpFilter
H A DCssEmbedFilter.php138 public function getChildren(AssetFactory $factory, $content, $loadPath = null) function in Assetic\\Filter\\CssEmbedFilter
H A DLessFilter.php167 public function getChildren(AssetFactory $factory, $content, $loadPath = null) function in Assetic\\Filter\\LessFilter
/plugin/davcal/vendor/sabre/dav/lib/CalDAV/Schedule/
H A DInbox.php65 function getChildren() { function in Sabre\\CalDAV\\Schedule\\Inbox
/plugin/findologicxmlexport/vendor/hoa/compiler/Test/Unit/Llk/Rule/
H A DRepetition.php80 ->array($result->getChildren())
/plugin/findologicxmlexport/vendor/hoa/compiler/Llk/
H A DTreeNode.php260 public function getChildren() function in Hoa\\Compiler\\Llk\\TreeNode
/plugin/pureldap/classes/
H A DGroupHierarchyCache.php139 public function getChildren($group) function in dokuwiki\\plugin\\pureldap\\classes\\GroupHierarchyCache
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Search/Filter/
H A DFilterContainerTrait.php171 foreach ($type->getChildren() as $child) {
/plugin/findologicxmlexport/vendor/hoa/compiler/Llk/Sampler/
H A DCoverage.php169 for ($i = 0, $max = count($rule->getChildren()); $i < $max; ++$i) {
262 $children = $rule->getChildren();
568 $children = $rule->getChildren();
/plugin/combo/resources/library/combo/
H A Dcombo.min.js4 </span>`):`<a href="${t}" title="${this.getDescription()}" data-bs-toggle="tooltip" style="text-decoration:none" target="_blank">${this.getLabel()}</a>`}setType(t){return this.type=t,this}setLabel(t){return this.label=t,this}setUrl(t){return this.url=t,this}addValue(t,e){return this.values.push(t),this.defaultValues.push(e),this}getType(){return this.type}getLabel(){return this.label===void 0?this.getName().split(/[_\-]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):this.label}getUrl(){return this.url}getName(){return this.name}getDescription(){return this.description}getTab(){return this.tab}static createFromJson(t,e=null){t.hasOwnProperty("name")||E.getLogger().error("To create a form meta field, the name property is mandatory.");let s=t.name,l=w.createFromName(s);e!=null&&l.setParent(e);let r,n;for(let o in t){if(!t.hasOwnProperty(o))continue;let a=t[o];switch(o){case"name":continue;case"label":l.setLabel(a);continue;case"tab":l.setTab(a);continue;case"type":l.setType(a);continue;case"mutable":l.setMutable(a);continue;case"description":l.setDescription(a);continue;case"url":l.setUrl(a);continue;case"value":r=a;continue;case"default":n=a;continue;case"domain-values":l.setDomainValues(a);continue;case"multiple":l.setMultiple(a);continue;case"width":l.setControlWidth(a);continue;case"children":let p=a;for(let b in p){if(!p.hasOwnProperty(b))continue;let d=w.createFromJson(p[b],l);l.addChild(d)}continue;default:E.getLogger().error(`The property (${o}) of the form (${s}) is unknown`)}}return Array.isArray(r)?r.forEach((o,a)=>{let p=n[a];p!==void 0?l.addValue(o,p):l.addValue(o,"")}):l.addValue(r,n),l}setMultiple(t){return this.multiple=t,this}setParent(t){return this.parent=t,this}static createFromName(t){return new w(t)}isMutable(){return this.mutable}setTab(t){return this.tab=t,this}setMutable(t){return this.mutable=H.toBoolean(t),this}setDescription(t){return this.description=t,this}getDefaultValue(){return this.defaultValues[0]}getValue(){return this.values[0]}getDomainValues(){return this.domainValues}setDomainValues(t){if(!Array.isArray(t)){console.error(`The domains values should be an array. (${t}) is not an array`);return}return this.domainValues=t,this}setControlWidth(t){return this.width=t,this}getControlWidth(){return this.width===void 0&&this.parent!==void 0?12/this.parent.getChildren().length:this.width}getValues(){return this.values}getDefaultValues(){return this.defaultValues}getChildren(){return Object.values(this.children)}addChild(t){return this.children[t.getName()]=t,this}toHtmlLabel(t,e){let s=this.getLabelAnchor(),l;return this.getType()===w.BOOLEAN?l="form-check-label":l="col-form-label",typeof e<"u"&&(l=`${e} ${l}`),`<label for="${t}" class="${l}">${s}</label>`}toHtmlControl(t,e=null,s=null){let l=this.getType(),r=this.isMutable(),n=this.getDomainValues(),o,a;if(n!==void 0){a="select";let p="";s!==void 0&&(p=` (${s})`);let b="";this.getMultiple()&&(b="multiple"),a=`<select class="form-select" aria-label="${this.getLabel()}" name="${this.getName()}" id="${t}" ${b}>`;let d="";e===null&&(d="selected"),a+=`<option value="" ${d}>Default${p}</option>`;for(let h of n)h===e?d="selected":d="",a+=`<option value="${h}" ${d}>${h}</option>`;return a+="</select>",a}else{let p="No value";r&&(p=`Enter a ${this.getLabel()}`),s!=null&&(Q.isString(s)?p=$.toEntities(s):p=s);let b=`placeholder="${p}"`,d="",h,P=this.getName();r!==void 0&&!r?o="disabled":o="";let C="input",v="form-control",m="",A=3;switch(l){case w.DATE_TIME:h="datetime-local",e!==null?(e=e.slice(0,19),d=`value="${e}"`):!r&&s!==null&&(s=s.slice(0,19),d=`value="${s}"`),b="";break;case w.PARAGRAPH:C="textarea",e!==null&&(e=$.toEntities(e),d=`${e}`);break;case w.JSON:C="textarea",e!==null&&(typeof e=="object"&&(e=JSON.stringify(e,null,2)),e=$.toEntities(e),d=`${e}`),A=15;break;case w.BOOLEAN:h="checkbox",v="form-check-input",s!==null?(d=`value="${s}"`,e===s&&(m="checked")):e==="on"&&(m="checked"),b="";break;default:h="text",e!=null&&(d=`value="${e}"`)}switch(C){case"textarea":a=`<textarea id="${t}" name="${P}" class="${v}" rows="${A}" ${b} ${o}>${d}</textarea>`;break;default:case"input":a=`<input type="${h}" name="${P}" class="${v}" id="${t}" ${b} ${d} ${m} ${o}/>`;break}return a}}toJavascriptObject(){return{name:this.getName(),label:this.getLabel(),type:this.getType(),description:this.getDescription(),tab:this.getTab(),mutable:this.isMutable(),value:this.getValue(),default:this.getDefaultValue(),url:this.getUrl()}}getMultiple(){return this.multiple}};let T=w;i(T,"TABULAR_TYPE","tabular"),i(T,"DATE_TIME","datetime"),i(T,"PARAGRAPH","paragraph"),i(T,"BOOLEAN","boolean"),i(T,"JSON","json");class I{constructor(t){i(this,"name");i(this,"width");i(this,"label");i(this,"widthField");i(this,"widthLabel");this.name=t}getName(){return this.name}setWidth(t){return this.width=t,this}getWidth(){return this.width}static createFromJson(t){t.hasOwnProperty("name")||E.getLogger().error("A name property is mandatory to create a tab and was not found in the json provided");let e=t.name,s=new I(e);for(let l in t){if(!t.hasOwnProperty(l))continue;let r=t[l];switch(l){case"name":continue;case"label":s.setLabel(r);continue;case"width-field":s.setWidthField(r);continue;case"width-label":s.setWidthLabel(r);continue;default:E.getLogger().error(`The property (${l}) of the tab (${e}) is unknown`)}}return s}setLabel(t){return this.label=t,this}getLabel(){return this.label===void 0?this.name:this.label}setWidthField(t){return this.widthField=t,this}setWidthLabel(t){return this.widthLabel=t,this}getLabelWidth(){return this.widthLabel===void 0?3:this.widthLabel}getFieldWidth(){return this.widthField===void 0?12-this.getLabelWidth():this.widthField}static createFromName(t){return new I(t)}}class B{constructor(t){i(this,"formFields",{});i(this,"tabs",{});i(this,"width",8);i(this,"name");i(this,"label");i(this,"url");i(this,"getTabPaneId");i(this,"getTabNavId");i(this,"getControlId");if(t==null)throw new Error("The if of the form should not be null");this.name=t,this.getControlId=function(e){let s=$.toHtmlId(e);return`${t}-control-${s}`},this.getTabNavId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-nav-${s}`},this.getTabPaneId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-pane-${s}`}}getLabel(){return this.label}getUrl(){return this.url}getId(){return this.name}getControlWidth(){return this.width}getLabelWidth(){return 12-this.getControlWidth()}static createFromJson(t,e){let s=B.createFromId(t);for(let l in e){if(!e.hasOwnProperty(l))continue;let r=e[l];switch(l){case"fields":let n=r;for(let a in n)n.hasOwnProperty(a)&&s.addFormField(T.createFromJson(n[a]));continue;case"tabs":let o=r;for(let a in o)o.hasOwnProperty(a)&&s.addTab(I.createFromJson(o[a]));break;case"width":s.setControlWidth(r);break;case"label":s.setLabel(r);break;case"url":s.setUrl(r);break;default:E.getLogger().error(`The form property (${l}) is unknown`)}}return s}static createFromId(t){return new B(t)}addFormField(t){return this.formFields[t.getName()]=t,this.tabs.hasOwnProperty(t.getTab())||(this.tabs[t.getTab()]=I.createFromName(t.getTab())),this}getFields(){return Object.values(this.formFields)}getTabs(){return Object.values(this.tabs)}addTab(t){this.tabs[t.getName()]=t}valueOf(){return this.getId()}getFieldsForTab(t){return this.getFields().filter(e=>e.getTab()===t)}toHtmlElement(){let t=this.getId(),e='<ul class="nav nav-tabs mb-3">',s,l,r=this.getTabs(),n=r[0];for(let h of r){Object.is(h,n)?(s="active",l="true"):(s="",l="false");let P=h.getLabel(),C=this.getTabPaneId(h),v=this.getTabNavId(h);e+=` method in AnonymousFunction75dc2f360100.w
16 </li>`}e+="</ul>";let o='<div class="tab-content">',a,p,b=0;for(let h of r){let P=this.getTabPaneId(h),C=this.getTabNavId(h);h===n?s="active":s="",o+=`<div class="tab-pane ${s}" id="${P}" role="tabpanel" aria-labelledby="${C}">`,p=h.getLabelWidth(),a=h.getFieldWidth();let v=this.getFieldsForTab(h.getName());if(v.length===1){let m=v[0];if(m.getChildren().length===0){b++;let A=this.getControlId(b),k=m.toHtmlLabel(A),M=m.getValue(),W=m.getDefaultValue(),j=m.toHtmlControl(A,M,W);o+=`
19 `,o+="</div>";continue}}for(let m of v)switch(m.getChildren().length){case 0:b++;let k=this.getControlId(b),M=m.toHtmlLabel(k,`col-sm-${p}`),W=m.getValue(),j=m.getDefaultValue(),K=m.toHtmlControl(k,W,j);o+=`
24 `;break;default:let Y=m.getLabelAnchor();o+=`<div class="row mb-3 text-center">${Y}</div>`,o+='<div class="row mb-3">';let U=0;for(const L of m.getChildren()){let O=L.getControlWidth();o+=`<div class="col-sm-${O} text-center">`,o+=L.getLabelAnchor(),o+="</div>";let D=L.getValues().length;D>U&&(U=D)}o+="</div>";for(let L=0;L<U;L++){o+='<div class="row mb-3">';for(const O of m.getChildren()){let D=O.getValues()[L],Z=O.getDefaultValues()[L];b++;let _=this.getControlId(b),tt=O.getControlWidth();o+=`<div class="col-sm-${tt}">`,o+=O.toHtmlControl(_,D,Z),o+="</div>"}o+="</div>"}break}o+="</div>"}o+="</div>";let d=document.createElement("form");return d.setAttribute("id",t),d.innerHTML=`${e} ${o}`,d}setControlWidth(t){return this.width=t,this}setLabel(t){this.label=t}setUrl(t){this.url=t}}let S={};const N=class{constructor(t){i(this,"footerButtons",[]);i(this,"bodies",[]);i(this,"isBuild",!1);i(this,"bodyStyles",{});i(this,"dialogStyles",{});i(this,"showFooter",!0);i(this,"dialogClasses",[]);i(this,"modalId");i(this,"modalRootHtmlElement");i(this,"headerText");i(this,"isResetOnClose");i(this,"closeButton");i(this,"isCentered");i(this,"callBack");i(this,"bootStrapModal");i(this,"modalContent");i(this,"modalBody");i(this,"placementElement");this.modalId=t;let e=document.getElementById(t);e!==null?(E.getLogger().error(`The id (${t}) given to create a modal was already used by an element in the DOM. We have reused it.`),this.modalRootHtmlElement=e,this.reset()):(this.modalRootHtmlElement=document.createElement("div"),this.modalRootHtmlElement.setAttribute("id",this.modalId),this.modalRootHtmlElement.classList.add("modal","fade"),this.modalRootHtmlElement.setAttribute("aria-hidden","true")),this.modalContent=document.createElement("div"),this.modalContent.classList.add("modal-content")}setHeader(t){return this.headerText=t,this}addBody(t){return this.bodies.push(t),this}addBodyStyle(t,e){return this.bodyStyles[t]=e,this}setPlacementBottomToElement(t){return this.placementElement=t,this}noFooter(){return this.showFooter=!1,this}addDialogStyle(t,e){return this.dialogStyles[t]=e,this}addDialogClass(t){return this.dialogClasses.push(t),this}resetOnClose(){return this.isResetOnClose=!0,this}addFooterButton(t){return this.footerButtons.push(t),this}addFooterCloseButton(t="Close"){this.closeButton=document.createElement("button"),this.closeButton.classList.add("btn","btn-secondary"),this.closeButton.innerHTML=t;let e=this;return this.closeButton.addEventListener("click",function(){e.bootStrapModal.hide()}),this.addFooterButton(this.closeButton),this}centered(){return this.isCentered=!0,this}show(){if(this.isResetOnClose===!0){let t=this;this.getElement().addEventListener("hidden.bs.modal",function(){t.reset()})}if(typeof this.callBack<"u"&&typeof this.closeButton<"u"){let t=this;this.closeButton.addEventListener("click",function(){t.dismissHide(),t.callBack()})}this.build().show()}dismissHide(){this.build().hide()}getModalId(){return this.modalId}setCallBackOnClose(t){return this.callBack=t,this}static createFromId(t){let e=new N(t);return S[t]=e,e}static createTemporary(){return this.createFromId($.createRandomId())}getElement(){return this.modalRootHtmlElement}wasBuild(){return this.isBuild}setCentered(t){return this.isCentered=t,this}resetIfBuild(){return this.wasBuild()&&this.reset(),this}reset(){this.modalRootHtmlElement.querySelectorAll('[data-bs-toggle="tab"]').forEach(t=>{let e=c.Tab.getInstance(t);e!==null&&e.dispose()}),this.bootStrapModal!==void 0&&this.dismissHide(),this.modalRootHtmlElement.innerHTML="",this.isBuild=!1,this.bodies=[],this.footerButtons=[],this.headerText=void 0}build(){if(typeof this.bootStrapModal<"u")return this.bootStrapModal;let t=c.Modal.getInstance(this.modalRootHtmlElement);if(t!==null)return this.bootStrapModal=t,t;if(document.body.appendChild(this.modalRootHtmlElement),typeof this.placementElement<"u"){let r=this.placementElement.getBoundingClientRect();this.modalRootHtmlElement.style.margin="0",this.modalRootHtmlElement.style.left=r.left+"px";let n=5;this.modalRootHtmlElement.style.top=r.top+n+"px",this.modalRootHtmlElement.style.width="unset",this.modalRootHtmlElement.style.height="unset"}const e=document.createElement("div");e.classList.add("modal-dialog","modal-dialog-scrollable","modal-lg"),this.isCentered?e.classList.add("modal-dialog-centered"):(e.style.setProperty("margin","5rem auto"),e.style.setProperty("height","calc(100% - 9rem)"));for(let r in this.dialogStyles)this.dialogStyles.hasOwnProperty(r)&&e.style.setProperty(r,this.dialogStyles[r]);for(let r in this.dialogClasses)e.classList.add(r);this.modalRootHtmlElement.appendChild(e),e.appendChild(this.modalContent),this.modalBody=document.createElement("div"),this.modalBody.classList.add("modal-body");for(let r in this.bodyStyles)this.bodyStyles.hasOwnProperty(r)&&this.modalBody.style.setProperty(r,this.bodyStyles[r]);if(this.modalContent.appendChild(this.modalBody),this.headerText!==void 0){let r=`
/plugin/pureldap/vendor/freedsx/asn1/src/FreeDSx/Asn1/Encoder/
H A DCerDerTrait.php136 if (count($setOf->getChildren()) === 0) {
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Request/
H A DExtendedRequest.php174 foreach ($type->getChildren() as $child) {
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Response/
H A DExtendedResponse.php136 foreach ($type->getChildren() as $child) {
/plugin/davcal/vendor/sabre/dav/tests/Sabre/CardDAV/
H A DAddressBookTest.php57 $cards = $this->ab->getChildren();
/plugin/webdav/vendor/sabre/dav/lib/CardDAV/
H A DAddressBook.php78 function getChildren() { function in Sabre\\CardDAV\\AddressBook
/plugin/combo/ComboStrap/Meta/Form/
H A DFormMeta.php184 $formMetaChildren = $field->getChildren();
/plugin/davcal/vendor/sabre/dav/lib/CardDAV/
H A DAddressBook.php76 function getChildren() { function in Sabre\\CardDAV\\AddressBook
/plugin/combo/vendor/antlr/antlr4-php-runtime/src/Tree/
H A DTrees.php91 public static function getChildren(Tree $tree) : array function in Antlr\\Antlr4\\Runtime\\Tree\\Trees
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DTreeTest.php58 $children = $tree->getChildren('');
/plugin/webdav/vendor/sabre/dav/lib/CalDAV/
H A DCalendar.php124 function getChildren() { function in Sabre\\CalDAV\\Calendar

12345678