This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This will recursively check if the new randomid is already in use | |
function Exists(randomid:String;path:string):Boolean | |
Begin | |
// If no path is set, then the search starts in the Storages root | |
if (path = '') then begin | |
path := '\Storages'; | |
end; | |
curItem := Planswift.GetItem(path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myitem := NewItem('\Job\Takeoff', 'Area', 'Auto Area Test'); | |
Result := EditItem(myitem); | |
if (Result = 'True') then begin | |
mysection := NewSection(myitem, 'Section'); | |
if (mysection = '') then begin | |
DeleteItem(myitem); | |
end | |
else begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$modelPath = $modx->getOption('faqman.core_path',null,$modx->getOption('core_path').'components/faqman/').'model/'; | |
$modx->addPackage('faqman',$modelPath); | |
$manager = $modx->getManager(); | |
$manager->createObjectContainer('faqManItem'); | |
$manager->createObjectContainer('faqManSet'); | |
$modx->exec(" | |
ALTER TABLE {$modx->getTableName('faqManItem')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
exportType:String; | |
exportFormat:String; | |
extxt:String; | |
itemStr:string; | |
procedure csv; | |
begin | |
exportType := 'csv'; | |
End; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am josht on github. | |
* I am jtambunga (https://keybase.io/jtambunga) on keybase. | |
* I have a public key ASCLOQBO9jBuMOIhX83Xe5tbBEJDmaMVQvd-IXORCKViLQo | |
To claim this, I am signing this object: |