concrete/src/Permission/Key/Key.php
public function export($axml)
    {
        $category = PermissionKeyCategory::getByID($this->pkCategoryID)->getPermissionKeyCategoryHandle();
        $pkey = $axml->addChild('permissionkey');
        $pkey->addAttribute('handle', $this->getPermissionKeyHandle());
        $pkey->addAttribute('name', $this->getPermissionKeyName());
        $pkey->addAttribute('description', $this->getPermissionKeyDescription());
        $pkey->addAttribute('package', $this->getPackageHandle());
        $pkey->addAttribute('category', $category);
        $this->exportAccess($pkey);

        return $pkey;
    }
public function export($axml)
    {
        $category = PermissionKeyCategory::getByID($this->pkCategoryID)->getPermissionKeyCategoryHandle();
        $pkey = $axml->addChild('permissionkey');
        $pkey->addAttribute('handle', $this->getPermissionKeyHandle());
        $pkey->addAttribute('name', $this->getPermissionKeyName());
        $pkey->addAttribute('description', $this->getPermissionKeyDescription());
        $pkey->addAttribute('package', $this->getPackageHandle());
        $pkey->addAttribute('category', $category);
        $this->exportAccess($pkey);

        return $pkey;
    }
public function export ( $ axml ) { $ category = PermissionKeyCategory :: getByID ( $ this -> pkCategoryID ) -> getPermissionKeyCategoryHandle ( ) ; $ pkey = $ axml -> addChild ( 'permissionkey' ) ; $ pkey -> addAttribute ( 'handle' , $ this -> getPermissionKeyHandle ( ) ) ; $ pkey -> addAttribute ( 'name' , $ this -> getPermissionKeyName ( ) ) ; $ pkey -> addAttribute ( 'description' , $ this -> getPermissionKeyDescription ( ) ) ; $ pkey -> addAttribute ( 'package' , $ this -> getPackageHandle ( ) ) ; $ pkey -> addAttribute ( 'category' , $ category ) ; $ this -> exportAccess ( $ pkey ) ; return $ pkey ; }
Export this permission key to a SimpleXMLElement instance.

@param \SimpleXMLElement $axml

@return \SimpleXMLElement
Export this permission key to a SimpleXMLElement instance .