从权限配置中获取当前操作的名称

@return string|null
434449
public function getActionName()
    {
        $action = $this->app->getAction();
        if (isset($this->actionPermissions[$action])) {
            return $this->actionPermissions[$action];
        }

        foreach ($this->actionPermissions as $actions => $name) {
            $actions = explode(',', $actions);
            if (in_array($action, $actions)) {
                return $name;
            }
        }

        return null;
    }
268447
public function getName() : string
    {
        if (is_null($this->name)) {
            $this->name = $this->getFQCN();
        }
        return $this->name;
    }
609557
public function name()
    {
        if ($name = $this->route->getName()) {
            return $name;
        }

        $name = $this->route->getActionName();

        if ($name === 'Closure') {
            return null;
        }

        $namespace = array_get($this->route->getAction(), 'namespace');

        return str_replace($namespace . '\\', '', $name);
    }
1050922
public function getDbName ()
		{
			if ($this->db->getDriverName() == 'mysql')
			{
				preg_match("/dbname=([^;]*)/", $this->db->dsn, $match);
				if (isset($match[ 1 ]))
					return $match[ 1 ];
			}

			return null;
		}
1057504
protected function getBundleName()
    {
        $pattern = "/(.*)Bundle/";
        $matches = array();
        preg_match($pattern, $this->getRequest()->get('_controller'), $matches);
        return empty($matches) ? null : $matches[1];
    }
1306890
public function getUsername() {
		if (isset($_SESSION) && isset($_SESSION[self::SESSION_FIELD_USERNAME])) {
			return $_SESSION[self::SESSION_FIELD_USERNAME];
		}
		else {
			return null;
		}
	}
853631
public static function getDriverName()
    {
        // 连接名
        $connectName    = self::getConnectName();
        $diverName      = ConnectionFactor::getConnectionData($connectName)->getDriver();
        return $diverName;
    }
275689
public function getTableField() {
        #不是全表名是添加表前缀
        if (!empty($this->fields)) {
            return $this->fields;
        }
        $name = C('sql', "table") . '.' . $this->table;
        #字段缓存
        if (!DEBUG && F($name, '[get]', 'temp/field')) {
            $data = F($name, '[get]', 'temp/field');
        } else {
            $sql = "show columns from " . $this->table;
            if (!$result = $this->query($sql)) {
                return FALSE;
            }
            $data = [];
            foreach ($result as $res) {
                $f['field']          = $res['Field'];
                $f['type']           = $res['Type'];
                $f['null']           = $res['Null'];
                $f['key']            = ($res['Key'] == "PRI" && $res['Extra']) || $res['Key'] == "PRI";
                $f['default']        = $res['Default'];
                $f['extra']          = $res['Extra'];
                $data[$res['Field']] = $f;
            }
            DEBUG || F($name, $data, 'temp/field');
        }
        return $this->fields = $data;
    }
1317063
public function getName()
    {
        if (!$this->_name) {
            $class = Type::short($this);
            $this->_name = Helper::rtrimWord(Type::snake_case($class, '-'), '-type');
        }

        return $this->_name;

    }
1361919
private function _get_table_name()
    {
        if ($this->table_name == '') {
            // 如果是在实例化后使用，则使用当前模型名称
            $current_class = get_class($this);
            if ($current_class != 'model') {
                $this->table_name = strtolower(substr($current_class, strrpos($current_class, '\\')+1, -5));

                // 如果设置了表前缀
                if (true == ($tb_prefix = Config::get('dbconfig.'.$this->db_config_name . '.tb_prefix'))) {
                    $this->table_name = $tb_prefix . $this->table_name;
                }
            } else {
                throw_error('Tablename cannot automatically infer.');
            }
        }

        return $this->table_name;
    }
157189
public function getName(){
		$result = null;
		if (isset($this->userInfo[$this->socialFieldsMap['name']])) {
			$result = $this->userInfo[$this->socialFieldsMap['name']];
			}
		return $result;
		}
796789
public function getName()
    {
        if (!empty($this->_name)) {
            return $this->_name;
        }
        $name = '';
        $keys = [
            'prefix' => ':',
            'plugin' => '.',
            'controller' => ':',
            'action' => ''
        ];
        foreach ($keys as $key => $glue) {
            $value = null;
            if (strpos($this->template, ':' . $key) !== false) {
                $value = '_' . $key;
            } elseif (isset($this->defaults[$key])) {
                $value = $this->defaults[$key];
            }

            if ($value === null) {
                continue;
            }
            if ($value === true || $value === false) {
                $value = $value ? '1' : '0';
            }
            $name .= $value . $glue;
        }

        return $this->_name = strtolower($name);
    }
942986
public function getCurrentName()
    {
        switch ($this->current) {
            case self::CURRENT_OTHER:
                $currentName = Yii::t('yuncms', 'Other');
                break;
            case self::CURRENT_WORK:
                $currentName = Yii::t('yuncms', 'Work');
                break;
            case self::CURRENT_FREELANCE:
                $currentName = Yii::t('yuncms', 'Freelance');
                break;
            case self::CURRENT_START:
                $currentName = Yii::t('yuncms', 'Start');
                break;
            case self::CURRENT_OUTSOURCE:
                $currentName = Yii::t('yuncms', 'Outsource');
                break;
            case self::CURRENT_JOB:
                $currentName = Yii::t('yuncms', 'Job');
                break;
            case self::CURRENT_STUDENT:
                $currentName = Yii::t('yuncms', 'Student');
                break;
            default:
                throw new \RuntimeException('Your database is not supported!');
        }
        return $currentName;
    }
653644
public function getRealName() {
		if($this->firstname || $this->surname) {
			return trim($this->getFirstname() . ' ' . $this->getSurname());
		}
		return null;
	}
714932
public function getName()
    {
        if ($this->_name === null) {
            $endpoint = namespaceSplit(get_class($this));
            $endpoint = substr(end($endpoint), 0, -8);

            $inflectMethod = $this->getInflectionMethod();
            $this->_name = Inflector::$inflectMethod($endpoint);
        }

        return $this->_name;
    }
1299132
public function getPhpName()
    {
        if (null === $this->phpName) {
            $this->phpName = $this->buildPhpName($this->getStdSeparatedName());
        }

        return $this->phpName;
    }
426969
public function getName()
    {
        if (!$this->isEmpty($this->name)) {
            return $this->name;
        }

        foreach (['getName', 'getOriginalName'] as $fn) {
            $name = call_user_func([$this->event, $fn]);

            if ($this->isEmpty($name) || $name === $this) {
                continue;
            }

            if ($name instanceof self) {
                return $name = $name->getName();
            }
        }

        return $this->name = $this->parseEventName();
    }