mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Method visibility
This commit is contained in:
parent
74b91a1dd1
commit
317dbb1774
@ -27,6 +27,8 @@ class DocumentationPermalinks {
|
|||||||
*
|
*
|
||||||
* Do not need to include the language or the version current as it
|
* Do not need to include the language or the version current as it
|
||||||
* will add it based off the language or version in the session
|
* will add it based off the language or version in the session
|
||||||
|
*
|
||||||
|
* @param array
|
||||||
*/
|
*/
|
||||||
public static function add($map = array()) {
|
public static function add($map = array()) {
|
||||||
if(ArrayLib::is_associative($map)) {
|
if(ArrayLib::is_associative($map)) {
|
||||||
@ -40,7 +42,7 @@ class DocumentationPermalinks {
|
|||||||
/**
|
/**
|
||||||
* Return the location for a given short value.
|
* Return the location for a given short value.
|
||||||
*
|
*
|
||||||
* @return String|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
public static function map($url) {
|
public static function map($url) {
|
||||||
return (isset(self::$mapping[$url])) ? self::$mapping[$url] : false;
|
return (isset(self::$mapping[$url])) ? self::$mapping[$url] : false;
|
||||||
|
@ -341,7 +341,7 @@ class DocumentationViewer extends Controller {
|
|||||||
*
|
*
|
||||||
* @return DataObject
|
* @return DataObject
|
||||||
*/
|
*/
|
||||||
function getEntities($version = false, $lang = false) {
|
public function getEntities($version = false, $lang = false) {
|
||||||
$entities = DocumentationService::get_registered_entities($version, $lang);
|
$entities = DocumentationService::get_registered_entities($version, $lang);
|
||||||
$output = new ArrayList();
|
$output = new ArrayList();
|
||||||
|
|
||||||
@ -376,7 +376,7 @@ class DocumentationViewer extends Controller {
|
|||||||
*
|
*
|
||||||
* @return false|DocumentationEntity
|
* @return false|DocumentationEntity
|
||||||
*/
|
*/
|
||||||
function getEntity() {
|
public function getEntity() {
|
||||||
if($this->entity) {
|
if($this->entity) {
|
||||||
return DocumentationService::is_registered_entity(
|
return DocumentationService::is_registered_entity(
|
||||||
$this->entity,
|
$this->entity,
|
||||||
@ -396,7 +396,7 @@ class DocumentationViewer extends Controller {
|
|||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
function locationExists() {
|
public function locationExists() {
|
||||||
$entity = $this->getEntity();
|
$entity = $this->getEntity();
|
||||||
|
|
||||||
if($entity) {
|
if($entity) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user