Protected get modal resource
329090
protected function getModalResource(String $resources = 'standart', $data, $directory = 'Modals')
    {
        return Inclusion\View::use($resources, $data, true, __DIR__ . '/Resources/' . $directory . '/');
    }
973604
function getContent(modalId, opts) {
        var data = {
          modalId: modalId,
          theme: opts.theme,
          header: opts.header,
          fullScreen: opts.fullScreen ? "fullscreen" : "",
          styles: "",
          iframe: opts.iframe,
          iframeLoadingMsg: opts.iframeLoadingMsg,
          disableResize: opts.disableResize
        };

        if (opts.zIndex) {
          data.styles += "z-index:" + opts.zIndex + ";";
        }
        if (opts.absolute) {
          data.styles += "position:absolute;";
        }

        if (data.iframe && typeof data.iframe.param === "string") {
          data.iframe.param = ax5.util.param(data.iframe.param);
        }

        return MODAL.tmpl.get.call(this, "content", data, {});
      }
278530
public function getResource()
    {
        if ($this->getEvent() && $this->event->getTarget() instanceof ResourceInterface) {
            return $this->event->getTarget();
        }

        return null;
    }
388963
public function getCurrentResources()
    {
        // Getting the current Source element
        $source = $this->getCurrentSource();

        // Getting the data
        if ($source instanceof SourceInterface) {
            // Getting result iterator
            return $this->getResources($source);
        }
        return null;
    }
215744
protected function getForeignResource()
    {
        $modelName = $this->getForeignModelName();
        // Find the resource file from the resource-map or make a standard name.
        $resourceFile = ResourceMapper::pluckFirst($modelName) ?: Helpers::makeJsonFileName($modelName);

        if (File::exists(Config::getResourceFilePath($resourceFile))) {
            return Resource::fromFile($resourceFile, 'crestapps');
        }

        return null;
    }
1102452
def resource_in_navbar?(resource)
      return false unless resource
      return (Auth.configuration.auth_resources[resource.class.name][:nav_bar] && Auth.configuration.enable_sign_in_modals)
    end
1189761
protected function method_get()
	{
		$this->preserve_resource = $this->resource;
		$this->resource = \Uri::create($this->resource, array(), $this->params);
	}
1238359
public function get_resource_url() {
		$info = $this->data[$this->url];
		if (!isset($info['http://purl.org/vocab/resourcelist/schema#resource'])) {
			return null;
		}

		return $info['http://purl.org/vocab/resourcelist/schema#resource'][0]['value'];
	}
502148
function getAccessType()
    {
        if (!$this->_c__accMode instanceof AccessMode)
            $this->_c__accMode = new AccessMode;

        $this->assertMetaData();
        $mode = $this->getMetaKey('mode');
        if ($mode !== null)
            $this->_c__accMode->fromString($mode);

        return $this->_c__accMode;
    }
441444
public function getResources()
    {
        $resources = array_map(function ($resource) {
            return is_array($resource) ? $resource : array($resource);
        }, $this->getRawResources());

        return $resources;
    }
1021043
function() {
    return $(apos.modalSupport.stack.length ? apos.modalSupport.stack[apos.modalSupport.stack.length - 1] : 'body');
  }
1289571
protected function getResource()
    {
        if (empty($this->_resourceName) && empty($this->_resource)) {
            throw new LocalizedException(
                new Phrase('The resource isn\'t set.')
            );
        }

        return $this->_resource ?: ObjectManager::getInstance()->get($this->_resourceName);
    }
149086
function modal(e) {
    e.preventDefault();

    // Remove the old listeners so we don't trigger the regular validation
    Cortex.app('modal').off('done');

    var self = this;
    self.redirect = $(e.element).get('data-redirect');

    if (!this.restore) this.restore = Cortex.app('modal').on('close', function () {
      // The modal is closed, make sure that we still have a login state
      // present or restore it with our cached content.
      var modal = $('section.modal');
      if (~modal.get('innerHTML').indexOf('type="password"')) return;

      modal.set('innerHTML', self.content);
    });

    return this.render('login');
  }
133011
public function modalAction(Request $request)
    {
        if (!$request->isXmlHttpRequest()) {
            throw new NotFoundHttpException();
        }

        $config = $this->buildConfig($request);

        $browser = $this->renderView('EkynaMediaBundle:Manager:render.html.twig', array('config' => $config));

        $modal = new Modal();
        $modal->setTitle('ekyna_media.browser.title.' . $config['mode']);
        $modal->setContent($browser);

        if ($config['mode'] == 'multiple_selection') {
            $modal->setButtons(array(
                array(
                    'id'       => 'submit',
                    'label'    => 'ekyna_core.button.validate',
                    'icon'     => 'glyphicon glyphicon-ok',
                    'cssClass' => 'btn-success',
                    'autospin' => true,
                ),
                array(
                    'id'       => 'close',
                    'label'    => 'ekyna_core.button.close',
                    'icon'     => 'glyphicon glyphicon-remove',
                    'cssClass' => 'btn-default',
                ),
            ));
        }

        return $this->get('ekyna_core.modal')->render($modal);
    }
781985
public static function get(){
        if(empty(self::$currentMode)){
            self::$currentMode = self::getCurrentMode();
        }
        return self::$currentMode;
    }
536021
@Override
    public Object get(String propName) {
        if (propName.equals("mode")) {
            return getMode();
        }
        return super.get(propName);
    }
71526
def get_available_modes(self):
        """"""
        resource = "modes"
        resource_event = self.publish_and_get_event(resource)
        if resource_event:
            properties = resource_event.get("properties")
            return properties.get("modes")

        return None