Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
zikula-tools module:ns applied again
Browse files Browse the repository at this point in the history
  • Loading branch information
matheo committed Dec 13, 2013
1 parent 89d415c commit a3a5f3a
Show file tree
Hide file tree
Showing 108 changed files with 4,050 additions and 5,813 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# /
.git_externals
/nbproject
/.project
/.settings
/.buildpath
/.idea
11 changes: 3 additions & 8 deletions Access.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/**
<?php?>
<?php/**
* Clip
*
* @copyright (c) Clip Team
Expand All @@ -8,7 +8,6 @@
* @package Clip
* @subpackage Lib
*/

namespace Clip;

use SecurityUtil;
Expand All @@ -23,10 +22,6 @@
use ModUtil;
use DBUtil;
use Clip_Doctrine_Pubdata;

/**
* Clip Security Util.
*/
class Access
{
/**
Expand Down Expand Up @@ -282,4 +277,4 @@ public static function isPubStateNeeded($context)
return in_array($context, array('access', 'exec')) || strpos($context, 'edit') === 0;
}

}
}<?php
54 changes: 0 additions & 54 deletions Api/Admin.php

This file was deleted.

37 changes: 37 additions & 0 deletions Api/AdminApi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php?>
<?php/**
* Clip
*
* @copyright (c) Clip Team
* @link http://github.com/zikula-modules/clip/
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Clip
* @subpackage Api
*/
namespace Clip\Api;

use ModUtil;
use Clip_Access;
class AdminApi extends \\Zikula_AbstractApi
{
/**
* Get admin panel links.
*
* @return array Array of admin links.
*/
public function getlinks()
{
$links = array();
if (Clip_Access::toClip(ACCESS_ADMIN, 'ANY')) {
$links[] = array('url' => ModUtil::url('Clip', 'admin', 'main'), 'text' => $this->__('Index'));
}
if (Clip_Access::toClip(ACCESS_ADMIN)) {
$links[] = array('url' => ModUtil::url('Clip', 'admin', 'relations'), 'text' => $this->__('Relations'));
$links[] = array('url' => ModUtil::url('Clip', 'admin', 'clipexport'), 'text' => $this->__('Export'));
$links[] = array('url' => ModUtil::url('Clip', 'admin', 'clipimport'), 'text' => $this->__('Import'));
$links[] = array('url' => ModUtil::url('Clip', 'admin', 'modifyconfig'), 'text' => $this->__('Settings'));
}
return $links;
}

}<?php
Loading

0 comments on commit a3a5f3a

Please sign in to comment.