]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
coding standards
authorcash <cash.costello@gmail.com>
Sat, 16 Mar 2013 16:03:21 +0000 (12:03 -0400)
committercash <cash.costello@gmail.com>
Sat, 16 Mar 2013 16:03:21 +0000 (12:03 -0400)
engine/classes/ElggAccess.php
engine/classes/ElggCache.php
engine/classes/ElggData.php
engine/classes/ElggFileCache.php
engine/classes/ElggXMLElement.php

index 6f8d9bb4bb89dba661129517e451a3ad7ba51a42..0aed477fc2196030f2c0d9bfad9ae5b67803d670 100644 (file)
@@ -16,6 +16,7 @@ class ElggAccess {
         */
        private $ignore_access;
 
+       // @codingStandardsIgnoreStart
        /**
         * Get current ignore access setting.
         *
@@ -26,6 +27,7 @@ class ElggAccess {
                elgg_deprecated_notice('ElggAccess::get_ignore_access() is deprecated by ElggAccess::getIgnoreAccess()', 1.8);
                return $this->getIgnoreAccess();
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Get current ignore access setting.
@@ -36,6 +38,7 @@ class ElggAccess {
                return $this->ignore_access;
        }
 
+       // @codingStandardsIgnoreStart
        /**
         * Set ignore access.
         *
@@ -49,6 +52,7 @@ class ElggAccess {
                elgg_deprecated_notice('ElggAccess::set_ignore_access() is deprecated by ElggAccess::setIgnoreAccess()', 1.8);
                return $this->setIgnoreAccess($ignore);
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Set ignore access.
index 4317f4be9ec650b1ba3701f1f2063dc1acb30537..909eab39befa8658982247e4ca5830bf97e27aa2 100644 (file)
@@ -21,6 +21,7 @@ abstract class ElggCache implements ArrayAccess {
                $this->variables = array();
        }
 
+       // @codingStandardsIgnoreStart
        /**
         * Set a cache variable.
         *
@@ -35,6 +36,7 @@ abstract class ElggCache implements ArrayAccess {
                elgg_deprecated_notice('ElggCache::set_variable() is deprecated by ElggCache::setVariable()', 1.8);
                $this->setVariable($variable, $value);
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Set a cache variable.
@@ -52,6 +54,7 @@ abstract class ElggCache implements ArrayAccess {
                $this->variables[$variable] = $value;
        }
 
+       // @codingStandardsIgnoreStart
        /**
         * Get variables for this cache.
         *
@@ -65,6 +68,7 @@ abstract class ElggCache implements ArrayAccess {
                elgg_deprecated_notice('ElggCache::get_variable() is deprecated by ElggCache::getVariable()', 1.8);
                return $this->getVariable($variable);
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Get variables for this cache.
index 426248ca3ad99bee951cb5fdd9e69edc92251078..4f843cde4a847fc304700692196b98ecca2fadaf 100644 (file)
@@ -26,6 +26,7 @@ abstract class ElggData implements
         */
        protected $attributes = array();
 
+       // @codingStandardsIgnoreStart
        /**
         * Initialise the attributes array.
         *
@@ -44,6 +45,7 @@ abstract class ElggData implements
                        elgg_deprecated_notice('initialise_attributes() is deprecated by initializeAttributes()', 1.8);
                }
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Initialize the attributes array.
index e654f1db204c7a909aa95b52d259ca6dd170a10a..94143f77768bcf930948558f4c7654e8ca5f8094 100644 (file)
@@ -26,6 +26,7 @@ class ElggFileCache extends ElggCache {
                }
        }
 
+       // @codingStandardsIgnoreStart
        /**
         * Create and return a handle to a file.
         *
@@ -41,6 +42,7 @@ class ElggFileCache extends ElggCache {
 
                return $this->createFile($filename, $rw);
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Create and return a handle to a file.
@@ -72,6 +74,7 @@ class ElggFileCache extends ElggCache {
                return fopen($path . $filename, $rw);
        }
 
+       // @codingStandardsIgnoreStart
        /**
         * Create a sanitised filename for the file.
         *
@@ -86,6 +89,7 @@ class ElggFileCache extends ElggCache {
 
                return $filename;
        }
+       // @codingStandardsIgnoreEnd
 
        /**
         * Create a sanitised filename for the file.
index 4e4b7e63ca9ff826337b2fcd297de2704db5f303..d7e91203554875105ca257726c5e3c44c47fc1b1 100644 (file)
@@ -76,6 +76,10 @@ class ElggXMLElement {
                return $result;
        }
 
+       /**
+        * @param string $name Property name
+        * @return mixed
+        */
        function __get($name) {
                switch ($name) {
                        case 'name':
@@ -94,6 +98,10 @@ class ElggXMLElement {
                return null;
        }
 
+       /**
+        * @param string $name Property name
+        * @return boolean
+        */
        function __isset($name) {
                switch ($name) {
                        case 'name':