function get_transform_origin() {
        $values = preg_split("/\s+/", $this->_props['transform_origin']);

        if (count($values) === 0) {
            $values = preg_split("/\s+/", self::$_defaults["transform_origin"]);
        }

        $values = array_map(function($value) {
            if (in_array($value, array("top", "left"))) {
                return 0;
            } else if (in_array($value, array("bottom", "right"))) {
                return "100%";
            } else {
                return $value;
            }
        }, $values);

        if (!isset($values[1])) {
            $values[1] = $values[0];
        }

        return $values;
    }
function get_transform_origin() {
        $values = preg_split("/\s+/", $this->_props['transform_origin']);

        if (count($values) === 0) {
            $values = preg_split("/\s+/", self::$_defaults["transform_origin"]);
        }

        $values = array_map(function($value) {
            if (in_array($value, array("top", "left"))) {
                return 0;
            } else if (in_array($value, array("bottom", "right"))) {
                return "100%";
            } else {
                return $value;
            }
        }, $values);

        if (!isset($values[1])) {
            $values[1] = $values[0];
        }

        return $values;
    }
function get_transform_origin ( ) { $ values = preg_split ( "/\s+/" , $ this -> _props [ 'transform_origin' ] ) ; if ( count ( $ values ) === 0 ) { $ values = preg_split ( "/\s+/" , self :: $ _defaults [ "transform_origin" ] ) ; } $ values = array_map ( function ( $ value ) { if ( in_array ( $ value , array ( "top" , "left" ) ) ) { return 0 ; } else if ( in_array ( $ value , array ( "bottom" , "right" ) ) ) { return "100%" ; } else { return $ value ; } } , $ values ) ; if ( ! isset ( $ values [ 1 ] ) ) { $ values [ 1 ] = $ values [ 0 ] ; } return $ values ; }
Gets the CSS3 transform-origin property

@link http://www.w3.org/TR/css3-2d-transforms/#transform-origin
@return mixed[]
Gets the CSS3 transform - origin property