Questions tagged as 'static'

2
answers

Class accessible in every application C # [closed]

I would like a class that is not static to be available to the entire application. At first I thought of making this class static, but for obscure reasons that is not the case, I can not make it static. Then I researched something and found s...
asked by 17.01.2017 / 20:01
1
answer

Problems loading static files in Django in deploy in heroku

I'm trying to deploy an app that I started in django in heroku, but I'm having trouble loading the css / js / imgs files, here's how my folders and settings look! settings.py BASE_DIR = os.path.dirname(os.path.dirname(__file__)) PROJECT_ROO...
asked by 11.12.2017 / 15:27
2
answers

Static ArrayList returns size 0 when I try to retrieve it in an activity

I have this class: abstract public class ListaEstaticaDeErros { private static ArrayList<DescritorDeErro> listErros = new ArrayList<DescritorDeErro>(); private static boolean fimSinc = false; private static int municipio = 0; publ...
asked by 02.08.2018 / 15:59
0
answers

What is the difference between self and __CLASS__? [duplicate]

Studying the Singleton design pattern, I was testing: class Test { public static $var = "XYZ"; static function class() { return __CLASS__; } static function self() { return self::$var; } static functio...
asked by 03.09.2018 / 22:10
0
answers

How to measure the association between ordinal and nominal variables?

I want to measure the association between gender and the number of assignments of each score in a questionnaire. However, I have a 2x6 reference table with numbers less than 5 in more than one box (over 20% of the boxes). Looking for some solu...
asked by 03.04.2017 / 21:18
1
answer

Parameters in Static attribute

I have the following attributes in my class: static String URL="jdbc:jtds:sqlserver://blablabla; databaseName=Pxx"; static String usuario; static String password ; static String DRIVER="net.sourceforge.jtds.jdbc.Driver"; I would lik...
asked by 28.09.2016 / 19:46
1
answer

Changing place templates (Django)

I was trying to leave the templates folder (main) out of the 'core' folder because in fact I wanted to leave the 'templates' and 'static' folder out of the 'core'. See my project at GitHub . So I tried to do the following in settings.py:...
asked by 14.09.2016 / 21:39
2
answers

Static DataTable, how to load?

I need to create a method, which when the user logs into the system, when the initial menu is loaded, it loads a Static DataTable , so that I can use DataTable in future, to populate some ComboBox , without have the need to ma...
asked by 23.07.2016 / 01:03
2
answers

Help with $ this and self in php [closed]

abstract class BaseModel { public function find($params){ $table = $this->$table; //... } } class User extends BaseModel { protected $table = "users"; } If I do: $u = new User(); $u->find([]); It works...
asked by 09.04.2016 / 04:51
2
answers

Use of chained static functions

I wanted to use static PHP functions as follows: class A { static function a1() { echo "A1"; return A; } static function a2() { echo "A2"; return A; } } A::a1()::a2(); It works but shows this...
asked by 07.08.2018 / 21:58